public class SAMLDelegationHandler extends Object implements TokenDelegationHandler
Constructor and Description |
---|
SAMLDelegationHandler() |
Modifier and Type | Method and Description |
---|---|
boolean |
canHandleToken(ReceivedToken delegateTarget)
Return true if this TokenDelegationHandler implementation is capable of handling the
ReceivedToken argument.
|
protected List<String> |
getAudienceRestrictions(org.apache.wss4j.common.saml.SamlAssertionWrapper assertion) |
boolean |
isCheckAudienceRestriction() |
protected boolean |
isDelegationAllowed(ReceivedToken receivedToken,
String appliesToAddress)
Is Delegation allowed for a particular token
|
TokenDelegationResponse |
isDelegationAllowed(TokenDelegationParameters tokenParameters)
See if delegation is allowed for a Token using the given TokenDelegationParameters.
|
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.
|
public boolean canHandleToken(ReceivedToken delegateTarget)
TokenDelegationHandler
canHandleToken
in interface TokenDelegationHandler
public TokenDelegationResponse isDelegationAllowed(TokenDelegationParameters tokenParameters)
TokenDelegationHandler
isDelegationAllowed
in interface TokenDelegationHandler
protected boolean isDelegationAllowed(ReceivedToken receivedToken, String appliesToAddress)
protected List<String> getAudienceRestrictions(org.apache.wss4j.common.saml.SamlAssertionWrapper assertion)
public boolean isCheckAudienceRestriction()
public void setCheckAudienceRestriction(boolean checkAudienceRestriction)
checkAudienceRestriction
- whether to perform an audience restriction check or notApache CXF