Class SAMLDelegationHandler
java.lang.Object
org.apache.cxf.sts.token.delegation.SAMLDelegationHandler
- All Implemented Interfaces:
TokenDelegationHandler
- Direct Known Subclasses:
HOKDelegationHandler
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanHandleToken(ReceivedToken delegateTarget) Return true if this TokenDelegationHandler implementation is capable of handling the ReceivedToken argument.getAudienceRestrictions(org.apache.wss4j.common.saml.SamlAssertionWrapper assertion) booleanprotected booleanisDelegationAllowed(ReceivedToken receivedToken, String appliesToAddress) Is Delegation allowed for a particular tokenisDelegationAllowed(TokenDelegationParameters tokenParameters) See if delegation is allowed for a Token using the given TokenDelegationParameters.voidsetCheckAudienceRestriction(boolean checkAudienceRestriction) Set whether to perform a check that the received AppliesTo address is contained in the token as one of the AudienceRestriction URIs.
-
Constructor Details
-
SAMLDelegationHandler
public SAMLDelegationHandler()
-
-
Method Details
-
canHandleToken
Description copied from interface:TokenDelegationHandlerReturn true if this TokenDelegationHandler implementation is capable of handling the ReceivedToken argument.- Specified by:
canHandleTokenin interfaceTokenDelegationHandler
-
isDelegationAllowed
Description copied from interface:TokenDelegationHandlerSee if delegation is allowed for a Token using the given TokenDelegationParameters.- Specified by:
isDelegationAllowedin interfaceTokenDelegationHandler
-
isDelegationAllowed
Is Delegation allowed for a particular token -
getAudienceRestrictions
-
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
-