public interface SingleLogoutProfile
Modifier and Type | Method and Description |
---|---|
boolean |
processLogoutRequest(SAMLMessageContext context,
SAMLCredential credential)
Implementer must ensure that the incoming LogoutRequest stored in the context is verified and return true if
local logout should be executed.
|
void |
processLogoutResponse(SAMLMessageContext context)
Implementer is responsible for processing of LogoutResponse message present in the context.
|
void |
sendLogoutRequest(SAMLMessageContext context,
SAMLCredential credential)
Call to the method must ensure that LogoutRequest SAML message is sent to the IDP requesting global
logout of all known sessions.
|
void |
sendLogoutResponse(SAMLMessageContext context,
String statusCode,
String statusMessage)
Method sends logout response message constructed with the given status code to the peer entity.
|
void sendLogoutRequest(SAMLMessageContext context, SAMLCredential credential) throws org.opensaml.common.SAMLException, org.opensaml.saml2.metadata.provider.MetadataProviderException, org.opensaml.ws.message.encoder.MessageEncodingException
context
- processing contextcredential
- credential of the currently logged userorg.opensaml.common.SAMLException
- in case logout request can't be createdorg.opensaml.saml2.metadata.provider.MetadataProviderException
- in case idp metadata can't be resolvedorg.opensaml.ws.message.encoder.MessageEncodingException
- in case message can't be sent using given bindingvoid sendLogoutResponse(SAMLMessageContext context, String statusCode, String statusMessage) throws org.opensaml.saml2.metadata.provider.MetadataProviderException, org.opensaml.common.SAMLException, org.opensaml.ws.message.encoder.MessageEncodingException
context
- processing contextstatusCode
- status code to respond withstatusMessage
- status message to respond withorg.opensaml.common.SAMLException
- in case logout request can't be createdorg.opensaml.saml2.metadata.provider.MetadataProviderException
- in case idp metadata can't be resolvedorg.opensaml.ws.message.encoder.MessageEncodingException
- in case message can't be sent using given bindingboolean processLogoutRequest(SAMLMessageContext context, SAMLCredential credential) throws org.opensaml.common.SAMLException
context
- context containing SAML message being processedcredential
- credential of the currently authenticated userorg.opensaml.common.SAMLException
- in case message is invalidvoid processLogoutResponse(SAMLMessageContext context) throws org.opensaml.common.SAMLException, org.opensaml.xml.security.SecurityException, org.opensaml.xml.validation.ValidationException
context
- context containing processed SAML messageorg.opensaml.common.SAMLException
- in case the received SAML message is malformed or invalidorg.opensaml.xml.security.SecurityException
- in case the signature of the message is not trustedorg.opensaml.xml.validation.ValidationException
- in case the signature of the message is invalid