Spring Security SAML

org.springframework.security.saml.context
Interface SAMLContextProvider

All Known Implementing Classes:
SAMLContextProviderImpl, SAMLContextProviderLB

public interface SAMLContextProvider

Implementation is supposed to provide SAMLContext by populating all data about the local entity related to an Request.

Author:
Vladimir Schaefer

Method Summary
 SAMLMessageContext getLocalAndPeerEntity(HttpServletRequest request, HttpServletResponse response)
          Creates a SAMLContext with local entity and peer values filled.
 SAMLMessageContext getLocalEntity(HttpServletRequest request, HttpServletResponse response)
          Creates a SAMLContext with local entity values filled.
 

Method Detail

getLocalEntity

SAMLMessageContext getLocalEntity(HttpServletRequest request,
                                  HttpServletResponse response)
                                  throws org.opensaml.saml2.metadata.provider.MetadataProviderException
Creates a SAMLContext with local entity values filled. Also request and response must be stored in the context as message transports. Local entity ID is populated from data in the request object.

Parameters:
request - request
response - response
Returns:
context
Throws:
org.opensaml.saml2.metadata.provider.MetadataProviderException - in case of metadata problems

getLocalAndPeerEntity

SAMLMessageContext getLocalAndPeerEntity(HttpServletRequest request,
                                         HttpServletResponse response)
                                         throws org.opensaml.saml2.metadata.provider.MetadataProviderException
Creates a SAMLContext with local entity and peer values filled. Also request and response must be stored in the context as message transports. Local and peer entity IDs are populated from data in the request object.

Parameters:
request - request
response - response
Returns:
context
Throws:
org.opensaml.saml2.metadata.provider.MetadataProviderException - in case of metadata problems

Spring Security SAML