Class SAMLDelegationHandler

  • All Implemented Interfaces:
    TokenDelegationHandler
    Direct Known Subclasses:
    HOKDelegationHandler

    public class SAMLDelegationHandler
    extends Object
    implements TokenDelegationHandler
    The SAML TokenDelegationHandler implementation. It disallows ActAs or OnBehalfOf for all cases apart from the case of a Bearer SAML Token. In addition, the AppliesTo address (if supplied) must match an AudienceRestriction address (if in token), if the "checkAudienceRestriction" property is set to "true".
    • Constructor Detail

      • SAMLDelegationHandler

        public SAMLDelegationHandler()
    • Method Detail

      • isDelegationAllowed

        protected boolean isDelegationAllowed​(ReceivedToken receivedToken,
                                              String appliesToAddress)
        Is Delegation allowed for a particular token
      • getAudienceRestrictions

        protected List<String> getAudienceRestrictions​(org.apache.wss4j.common.saml.SamlAssertionWrapper assertion)
      • isCheckAudienceRestriction

        public boolean isCheckAudienceRestriction()
      • setCheckAudienceRestriction

        public void setCheckAudienceRestriction​(boolean checkAudienceRestriction)
        Set whether to perform a check that the received AppliesTo address is contained in the token as one of the AudienceRestriction URIs. The default is false.
        Parameters:
        checkAudienceRestriction - whether to perform an audience restriction check or not