Apache CXF API

org.apache.cxf.rs.security.saml.sso
Class AbstractRequestAssertionConsumerHandler

java.lang.Object
  extended by org.apache.cxf.rs.security.saml.sso.AbstractSSOSpHandler
      extended by org.apache.cxf.rs.security.saml.sso.AbstractRequestAssertionConsumerHandler
Direct Known Subclasses:
RequestAssertionConsumerFilter, RequestAssertionConsumerService

public abstract class AbstractRequestAssertionConsumerHandler
extends AbstractSSOSpHandler


Constructor Summary
AbstractRequestAssertionConsumerHandler()
           
 
Method Summary
 void close()
           
protected  String createSecurityContext(RequestState requestState, String encodedSamlResponse, String relayState, boolean postBinding)
           
protected  javax.ws.rs.core.Response doProcessSamlResponse(String encodedSamlResponse, String relayState, boolean postBinding)
           
 TokenReplayCache<String> getReplayCache()
           
 boolean isSupportBase64Encoding()
           
 boolean isSupportDeflateEncoding()
           
protected  RequestState processRelayState(String relayState)
           
protected  void reportError(String code)
           
 void setEnforceAssertionsSigned(boolean enforceAssertionsSigned)
          Enforce that Assertions must be signed if the POST binding was used.
 void setEnforceKnownIssuer(boolean enforceKnownIssuer)
          Enforce that the Issuer of the received Response/Assertion is known to this RACS.
 void setKeyInfoMustBeAvailable(boolean keyInfoMustBeAvailable)
           
 void setMessageContext(MessageContext mc)
           
 void setReplayCache(TokenReplayCache<String> replayCache)
           
 void setSupportBase64Encoding(boolean supportBase64Encoding)
           
 void setSupportDeflateEncoding(boolean deflate)
           
protected  void validateSamlResponseProtocol(org.opensaml.saml2.core.Response samlResponse)
          Validate the received SAML Response as per the protocol
protected  SSOValidatorResponse validateSamlSSOResponse(boolean postBinding, org.opensaml.saml2.core.Response samlResponse, RequestState requestState)
          Validate the received SAML Response as per the Web SSO profile
 
Methods inherited from class org.apache.cxf.rs.security.saml.sso.AbstractSSOSpHandler
createCookie, getCallbackHandler, getProps, getSignatureCrypto, getStateProvider, getStateTimeToLive, isStateExpired, setCallbackHandler, setCallbackHandlerClass, setSignatureCrypto, setSignaturePropertiesFile, setStateProvider, setStateTimeToLive
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractRequestAssertionConsumerHandler

public AbstractRequestAssertionConsumerHandler()
Method Detail

setMessageContext

@Context
public void setMessageContext(MessageContext mc)

setSupportDeflateEncoding

public void setSupportDeflateEncoding(boolean deflate)

isSupportDeflateEncoding

public boolean isSupportDeflateEncoding()

setReplayCache

public void setReplayCache(TokenReplayCache<String> replayCache)

getReplayCache

public TokenReplayCache<String> getReplayCache()

setEnforceAssertionsSigned

public void setEnforceAssertionsSigned(boolean enforceAssertionsSigned)
Enforce that Assertions must be signed if the POST binding was used. The default is true.


setEnforceKnownIssuer

public void setEnforceKnownIssuer(boolean enforceKnownIssuer)
Enforce that the Issuer of the received Response/Assertion is known to this RACS. The default is true.


setSupportBase64Encoding

public void setSupportBase64Encoding(boolean supportBase64Encoding)

isSupportBase64Encoding

public boolean isSupportBase64Encoding()

close

@PreDestroy
public void close()
Overrides:
close in class AbstractSSOSpHandler

doProcessSamlResponse

protected javax.ws.rs.core.Response doProcessSamlResponse(String encodedSamlResponse,
                                                          String relayState,
                                                          boolean postBinding)

createSecurityContext

protected String createSecurityContext(RequestState requestState,
                                       String encodedSamlResponse,
                                       String relayState,
                                       boolean postBinding)

processRelayState

protected RequestState processRelayState(String relayState)

validateSamlResponseProtocol

protected void validateSamlResponseProtocol(org.opensaml.saml2.core.Response samlResponse)
Validate the received SAML Response as per the protocol


validateSamlSSOResponse

protected SSOValidatorResponse validateSamlSSOResponse(boolean postBinding,
                                                       org.opensaml.saml2.core.Response samlResponse,
                                                       RequestState requestState)
Validate the received SAML Response as per the Web SSO profile


reportError

protected void reportError(String code)

setKeyInfoMustBeAvailable

public void setKeyInfoMustBeAvailable(boolean keyInfoMustBeAvailable)

Apache CXF API

Apache CXF