public abstract class AbstractRequestAssertionConsumerHandler extends AbstractSSOSpHandler
Constructor and Description |
---|
AbstractRequestAssertionConsumerHandler() |
Modifier and Type | Method and Description |
---|---|
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) |
String |
getApplicationURL() |
String |
getAssertionConsumerServiceAddress() |
TokenReplayCache<String> |
getReplayCache() |
boolean |
isCheckClientAddress() |
boolean |
isEnforceResponseSigned() |
boolean |
isParseApplicationURLFromRelayState() |
protected boolean |
isStateExpired(long stateCreatedAt,
long expiresAt) |
boolean |
isSupportBase64Encoding() |
boolean |
isSupportDeflateEncoding() |
protected RequestState |
processRelayState(String relayState) |
protected void |
reportError(String code) |
void |
setApplicationURL(String applicationURL)
Set the Application URL to forward to, for the unsolicited IdP case.
|
void |
setAssertionConsumerServiceAddress(String assertionConsumerServiceAddress) |
void |
setCheckClientAddress(boolean checkClientAddress) |
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 |
setEnforceResponseSigned(boolean enforceResponseSigned)
Enforce that a SAML Response must be signed.
|
void |
setKeyInfoMustBeAvailable(boolean keyInfoMustBeAvailable) |
void |
setMessageContext(MessageContext mc) |
void |
setParseApplicationURLFromRelayState(boolean parseApplicationURLFromRelayState)
Whether to parse the application URL to forward to from the RelayState, for the unsolicted IdP case.
|
void |
setReplayCache(TokenReplayCache<String> replayCache) |
void |
setSupportBase64Encoding(boolean supportBase64Encoding) |
void |
setSupportDeflateEncoding(boolean deflate) |
protected void |
validateSamlResponseProtocol(org.opensaml.saml.saml2.core.Response samlResponse)
Validate the received SAML Response as per the protocol
|
protected SSOValidatorResponse |
validateSamlSSOResponse(boolean postBinding,
org.opensaml.saml.saml2.core.Response samlResponse,
RequestState requestState)
Validate the received SAML Response as per the Web SSO profile
|
createCookie, getCallbackHandler, getIdpServiceAddress, getIssuerId, getSignatureCrypto, getSignatureUsername, getStateProvider, getStateTimeToLive, isSupportUnsolicited, setCallbackHandler, setCallbackHandlerClass, setIdpServiceAddress, setIssuerId, setSignatureCrypto, setSignaturePropertiesFile, setSignatureUsername, setStateProvider, setStateTimeToLive, setSupportUnsolicited
public AbstractRequestAssertionConsumerHandler()
@Context public void setMessageContext(MessageContext mc)
public void setSupportDeflateEncoding(boolean deflate)
public boolean isSupportDeflateEncoding()
public void setReplayCache(TokenReplayCache<String> replayCache)
public TokenReplayCache<String> getReplayCache() throws Exception
Exception
public void setEnforceAssertionsSigned(boolean enforceAssertionsSigned)
public void setEnforceKnownIssuer(boolean enforceKnownIssuer)
public void setSupportBase64Encoding(boolean supportBase64Encoding)
public boolean isSupportBase64Encoding()
@PreDestroy public void close()
close
in class AbstractSSOSpHandler
protected javax.ws.rs.core.Response doProcessSamlResponse(String encodedSamlResponse, String relayState, boolean postBinding)
protected String createSecurityContext(RequestState requestState, String encodedSamlResponse, String relayState, boolean postBinding)
protected RequestState processRelayState(String relayState)
protected void validateSamlResponseProtocol(org.opensaml.saml.saml2.core.Response samlResponse)
protected SSOValidatorResponse validateSamlSSOResponse(boolean postBinding, org.opensaml.saml.saml2.core.Response samlResponse, RequestState requestState)
protected void reportError(String code)
public void setKeyInfoMustBeAvailable(boolean keyInfoMustBeAvailable)
public boolean isEnforceResponseSigned()
public void setEnforceResponseSigned(boolean enforceResponseSigned)
public String getApplicationURL()
public void setApplicationURL(String applicationURL)
applicationURL
- public boolean isParseApplicationURLFromRelayState()
public void setParseApplicationURLFromRelayState(boolean parseApplicationURLFromRelayState)
parseApplicationURLFromRelayState
- public String getAssertionConsumerServiceAddress()
public void setAssertionConsumerServiceAddress(String assertionConsumerServiceAddress)
public boolean isCheckClientAddress()
public void setCheckClientAddress(boolean checkClientAddress)
protected boolean isStateExpired(long stateCreatedAt, long expiresAt)
Apache CXF