public class SingleLogoutProfileImpl extends AbstractProfileBase implements SingleLogoutProfile
artifactMap, builderFactory, log, metadata, processor, uriComparator
Constructor and Description |
---|
SingleLogoutProfileImpl() |
Modifier and Type | Method and Description |
---|---|
protected org.opensaml.saml2.core.LogoutRequest |
getLogoutRequest(SAMLMessageContext context,
SAMLCredential credential,
org.opensaml.saml2.metadata.Endpoint bindingService)
Returns logout request message ready to be sent to the IDP.
|
protected org.opensaml.saml2.core.NameID |
getNameID(SAMLMessageContext context,
org.opensaml.saml2.core.LogoutRequest request) |
String |
getProfileIdentifier()
Implementation are expected to provide an unique identifier for the profile this class implements.
|
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.
|
afterPropertiesSet, buildCommonAttributes, generateID, getEndpointBinding, getIssuer, getMaxAssertionTime, getResponseSkew, getStatus, isEndpointMatching, sendMessage, sendMessage, setArtifactMap, setMaxAssertionTime, setMetadata, setProcessor, setResponseSkew, verifyEndpoint, verifyIssuer, verifySignature
public String getProfileIdentifier()
AbstractProfileBase
getProfileIdentifier
in class AbstractProfileBase
public void sendLogoutRequest(SAMLMessageContext context, SAMLCredential credential) throws org.opensaml.common.SAMLException, org.opensaml.saml2.metadata.provider.MetadataProviderException, org.opensaml.ws.message.encoder.MessageEncodingException
SingleLogoutProfile
sendLogoutRequest
in interface SingleLogoutProfile
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 bindingprotected org.opensaml.saml2.core.LogoutRequest getLogoutRequest(SAMLMessageContext context, SAMLCredential credential, org.opensaml.saml2.metadata.Endpoint bindingService) throws org.opensaml.common.SAMLException, org.opensaml.saml2.metadata.provider.MetadataProviderException
context
- message contextcredential
- information about assertions used to log current user inbindingService
- service used to deliver the requestorg.opensaml.common.SAMLException
- error creating the messageorg.opensaml.saml2.metadata.provider.MetadataProviderException
- error retrieving metadatapublic boolean processLogoutRequest(SAMLMessageContext context, SAMLCredential credential) throws org.opensaml.common.SAMLException
SingleLogoutProfile
processLogoutRequest
in interface SingleLogoutProfile
context
- context containing SAML message being processedcredential
- credential of the currently authenticated userorg.opensaml.common.SAMLException
- in case message is invalidpublic void sendLogoutResponse(SAMLMessageContext context, String statusCode, String statusMessage) throws org.opensaml.saml2.metadata.provider.MetadataProviderException, org.opensaml.common.SAMLException, org.opensaml.ws.message.encoder.MessageEncodingException
SingleLogoutProfile
sendLogoutResponse
in interface SingleLogoutProfile
context
- processing contextstatusCode
- status code to respond withstatusMessage
- status message to respond withorg.opensaml.saml2.metadata.provider.MetadataProviderException
- in case idp metadata can't be resolvedorg.opensaml.common.SAMLException
- in case logout request can't be createdorg.opensaml.ws.message.encoder.MessageEncodingException
- in case message can't be sent using given bindingprotected org.opensaml.saml2.core.NameID getNameID(SAMLMessageContext context, org.opensaml.saml2.core.LogoutRequest request) throws org.opensaml.xml.encryption.DecryptionException
org.opensaml.xml.encryption.DecryptionException
public void processLogoutResponse(SAMLMessageContext context) throws org.opensaml.common.SAMLException, org.opensaml.xml.security.SecurityException, org.opensaml.xml.validation.ValidationException
SingleLogoutProfile
processLogoutResponse
in interface SingleLogoutProfile
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