Class SamlSSOAssertionValidator

java.lang.Object
org.apache.wss4j.dom.validate.SignatureTrustValidator
org.apache.wss4j.dom.validate.SamlAssertionValidator
org.apache.cxf.rs.security.saml.sso.SamlSSOAssertionValidator
All Implemented Interfaces:
org.apache.wss4j.dom.validate.Validator

public class SamlSSOAssertionValidator extends org.apache.wss4j.dom.validate.SamlAssertionValidator
An extension of the WSS4J SamlAssertionValidator. We can weaken the subject confirmation method requirements a bit for SAML SSO. A Bearer Assertion does not have to be signed by default if the outer Response is signed.
  • Constructor Summary

    Constructors
    Constructor
    Description
    SamlSSOAssertionValidator(boolean signedResponse)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    verifySubjectConfirmationMethod(org.apache.wss4j.common.saml.SamlAssertionWrapper samlAssertion)
    Check the Subject Confirmation method requirements

    Methods inherited from class org.apache.wss4j.dom.validate.SamlAssertionValidator

    checkAuthnStatements, checkConditions, checkConditions, checkOneTimeUse, getRequiredSubjectConfirmationMethod, getTtl, isRequireBearerSignature, isRequireStandardSubjectConfirmationMethod, isValidateSignatureAgainstProfile, setFutureTTL, setRequireBearerSignature, setRequiredSubjectConfirmationMethod, setRequireStandardSubjectConfirmationMethod, setTtl, setValidateSignatureAgainstProfile, validate, validateAssertion, verifySignedAssertion

    Methods inherited from class org.apache.wss4j.dom.validate.SignatureTrustValidator

    getCrypto, validateCertificates, validatePublicKey, verifyTrustInCerts

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SamlSSOAssertionValidator

      public SamlSSOAssertionValidator(boolean signedResponse)
  • Method Details

    • verifySubjectConfirmationMethod

      protected void verifySubjectConfirmationMethod(org.apache.wss4j.common.saml.SamlAssertionWrapper samlAssertion) throws org.apache.wss4j.common.ext.WSSecurityException
      Check the Subject Confirmation method requirements
      Overrides:
      verifySubjectConfirmationMethod in class org.apache.wss4j.dom.validate.SamlAssertionValidator
      Throws:
      org.apache.wss4j.common.ext.WSSecurityException