Class SAMLSSOResponseValidator
java.lang.Object
org.apache.cxf.rs.security.saml.sso.SAMLSSOResponseValidator
Validate a SAML 2.0 Protocol Response according to the Web SSO profile. The Response
should be validated by the SAMLProtocolResponseValidator first.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidsetAssertionConsumerURL(String assertionConsumerURL) voidsetClientAddress(String clientAddress) voidsetEnforceAssertionsSigned(boolean enforceAssertionsSigned) Enforce that Assertions contained in the Response must be signed (if the Response itself is not signed).voidsetEnforceKnownIssuer(boolean enforceKnownIssuer) Enforce that the Issuer of the received Response/Assertion is known.voidsetEnforceResponseSigned(boolean enforceResponseSigned) Enforce whether a SAML Response must be signed.voidsetEnforceStrictIssuerMatch(boolean enforceStrictIssuerMatch) Require the Issuer of the received Response/Assertion to match the configured Issuer IDP exactly, rather than allowing a same-origin prefix.voidsetIssuerIDP(String issuerIDP) voidsetReplayCache(TokenReplayCache<String> replayCache) voidsetRequestId(String requestId) voidsetSpIdentifier(String spIdentifier) validateSamlResponse(org.opensaml.saml.saml2.core.Response samlResponse, boolean postBinding) Validate a SAML 2 Protocol Response
-
Constructor Details
-
SAMLSSOResponseValidator
public SAMLSSOResponseValidator()
-
-
Method Details
-
setEnforceAssertionsSigned
public void setEnforceAssertionsSigned(boolean enforceAssertionsSigned) Enforce that Assertions contained in the Response must be signed (if the Response itself is not signed). The default is true. -
setEnforceKnownIssuer
public void setEnforceKnownIssuer(boolean enforceKnownIssuer) Enforce that the Issuer of the received Response/Assertion is known. The default is true. -
setEnforceStrictIssuerMatch
public void setEnforceStrictIssuerMatch(boolean enforceStrictIssuerMatch) Require the Issuer of the received Response/Assertion to match the configured Issuer IDP exactly, rather than allowing a same-origin prefix. The default is false, which keeps backwards compatibility for deployments whose entityID is a prefix of the configured value. -
validateSamlResponse
public SSOValidatorResponse validateSamlResponse(org.opensaml.saml.saml2.core.Response samlResponse, boolean postBinding) throws org.apache.wss4j.common.ext.WSSecurityException Validate a SAML 2 Protocol Response- Parameters:
samlResponse-postBinding-- Returns:
- a SSOValidatorResponse object
- Throws:
org.apache.wss4j.common.ext.WSSecurityException
-
getIssuerIDP
-
setIssuerIDP
-
getAssertionConsumerURL
-
setAssertionConsumerURL
-
getClientAddress
-
setClientAddress
-
getRequestId
-
setRequestId
-
getSpIdentifier
-
setSpIdentifier
-
setReplayCache
-
isEnforceResponseSigned
public boolean isEnforceResponseSigned() -
setEnforceResponseSigned
public void setEnforceResponseSigned(boolean enforceResponseSigned) Enforce whether a SAML Response must be signed.
-