|
Spring Security SAML | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.security.saml.websso.AbstractProfileBase
org.springframework.security.saml.websso.SingleLogoutProfileImpl
public class SingleLogoutProfileImpl
Implementation of the SAML 2.0 Single Logout profile.
Field Summary |
---|
Fields inherited from class org.springframework.security.saml.websso.AbstractProfileBase |
---|
artifactMap, builderFactory, metadata, processor |
Constructor Summary | |
---|---|
SingleLogoutProfileImpl()
|
Method Summary | |
---|---|
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. |
protected void |
sendLogoutResponse(org.opensaml.saml2.core.Status status,
SAMLMessageContext context)
|
Methods inherited from class org.springframework.security.saml.websso.AbstractProfileBase |
---|
afterPropertiesSet, buildCommonAttributes, generateID, getEndpointBinding, getIssuer, getMaxAssertionTime, getResponseSkew, getStatus, isEndpointMatching, sendMessage, sendMessage, setArtifactMap, setMaxAssertionTime, setMetadata, setProcessor, setResponseSkew, verifyEndpoint, verifyIssuer, verifySignature |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SingleLogoutProfileImpl()
Method Detail |
---|
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 user
org.opensaml.common.SAMLException
- in case logout request can't be created
org.opensaml.saml2.metadata.provider.MetadataProviderException
- in case idp metadata can't be resolved
org.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 request
org.opensaml.common.SAMLException
- error creating the message
org.opensaml.saml2.metadata.provider.MetadataProviderException
- error retrieving metadatapublic boolean processLogoutRequest(SAMLMessageContext context, SAMLCredential credential) throws org.opensaml.common.SAMLException, org.opensaml.saml2.metadata.provider.MetadataProviderException, org.opensaml.ws.message.encoder.MessageEncodingException
SingleLogoutProfile
processLogoutRequest
in interface SingleLogoutProfile
context
- context containing SAML message being processedcredential
- credential of the currently logged user
org.opensaml.common.SAMLException
- in case message is invalid and response can't be sent back
org.opensaml.saml2.metadata.provider.MetadataProviderException
- in case there are problems with determining idp metadata
org.opensaml.ws.message.encoder.MessageEncodingException
- in case message can't be sentprotected void sendLogoutResponse(org.opensaml.saml2.core.Status status, SAMLMessageContext context) throws org.opensaml.saml2.metadata.provider.MetadataProviderException, org.opensaml.common.SAMLException, org.opensaml.ws.message.encoder.MessageEncodingException
org.opensaml.saml2.metadata.provider.MetadataProviderException
org.opensaml.common.SAMLException
org.opensaml.ws.message.encoder.MessageEncodingException
protected 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 message
org.opensaml.common.SAMLException
- in case the received SAML message is malformed or invalid
org.opensaml.xml.security.SecurityException
- in case the signature of the message is not trusted
org.opensaml.xml.validation.ValidationException
- in case the signature of the message is invalid
|
Spring Security SAML | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |