org.apache.cxf.rs.security.saml.sso
Class SAMLProtocolResponseValidator
java.lang.Object
org.apache.cxf.rs.security.saml.sso.SAMLProtocolResponseValidator
public class SAMLProtocolResponseValidator
- extends Object
Validate a SAML (1.1 or 2.0) Protocol Response. It validates the Response against the specs,
the signature of the Response (if it exists), and any internal Assertion stored in the Response
- including any signature. It validates the status code of the Response as well.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SAML2_STATUSCODE_SUCCESS
public static final String SAML2_STATUSCODE_SUCCESS
- See Also:
- Constant Field Values
SAML1_STATUSCODE_SUCCESS
public static final String SAML1_STATUSCODE_SUCCESS
- See Also:
- Constant Field Values
SAMLProtocolResponseValidator
public SAMLProtocolResponseValidator()
validateSamlResponse
public void validateSamlResponse(org.opensaml.saml2.core.Response samlResponse,
org.apache.wss4j.common.crypto.Crypto sigCrypto,
CallbackHandler callbackHandler)
throws org.apache.wss4j.common.ext.WSSecurityException
- Validate a SAML 2 Protocol Response
- Parameters:
samlResponse
- sigCrypto
- callbackHandler
-
- Throws:
org.apache.wss4j.common.ext.WSSecurityException
validateSamlResponse
public void validateSamlResponse(org.opensaml.saml1.core.Response samlResponse,
org.apache.wss4j.common.crypto.Crypto sigCrypto,
CallbackHandler callbackHandler)
throws org.apache.wss4j.common.ext.WSSecurityException
- Validate a SAML 1.1 Protocol Response
- Parameters:
samlResponse
- sigCrypto
- callbackHandler
-
- Throws:
org.apache.wss4j.common.ext.WSSecurityException
createKeyInfoFromDefaultAlias
protected org.apache.wss4j.common.saml.SAMLKeyInfo createKeyInfoFromDefaultAlias(org.apache.wss4j.common.crypto.Crypto sigCrypto)
throws org.apache.wss4j.common.ext.WSSecurityException
- Throws:
org.apache.wss4j.common.ext.WSSecurityException
setKeyInfoMustBeAvailable
public void setKeyInfoMustBeAvailable(boolean keyInfoMustBeAvailable)
Apache CXF