code: public static LogoutResponse generateResponse  ( Status status , String inResponseTo , Issuer issuer , String realm , String hostRole , String remoteEntity ) { if ( status == null ) { status = SAML2Utils . generateStatus ( SAML2Constants . SUCCESS , SAML2Utils . bundle . getString ( "requestSuccess" ) ) ; } LogoutResponse logoutResponse = ProtocolFactory . getInstance ( ) . createLogoutResponse ( ) ; String responseID = SAMLUtils . generateID ( ) ; try { logoutResponse . setStatus ( status ) ; logoutResponse . setID ( responseID ) ; logoutResponse . setInResponseTo ( inResponseTo ) ; logoutResponse . setVersion ( SAML2Constants . VERSION_2_0 ) ; logoutResponse . setIssueInstant ( newDate ( ) ) ; logoutResponse . setIssuer ( issuer ) ; } catch ( SAML2Exception e ) { debug . error ( "Error in generating LogoutResponse." , e ) ; } return logoutResponse ; }
nl: Construye el <código> logoOutResponse </ Code> para ser enviado a IDP.