public class SAMLTokenValidator extends Object implements TokenValidator
| Constructor and Description |
|---|
SAMLTokenValidator() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canHandleToken(ReceivedToken validateTarget)
Return true if this TokenValidator implementation is capable of validating the
ReceivedToken argument.
|
boolean |
canHandleToken(ReceivedToken validateTarget,
String realm)
Return true if this TokenValidator implementation is capable of validating the
ReceivedToken argument.
|
SAMLRoleParser |
getSamlRoleParser() |
boolean |
isValidateSignatureAgainstProfile()
Whether to validate the signature of the Assertion (if it exists) against the
relevant profile.
|
void |
setSamlRealmCodec(SAMLRealmCodec samlRealmCodec)
Set the SAMLRealmCodec instance to use to return a realm from a validated token
|
void |
setSamlRoleParser(SAMLRoleParser samlRoleParser) |
void |
setSubjectConstraints(List<String> subjectConstraints)
Set a list of Strings corresponding to regular expression constraints on the subject DN
of a certificate that was used to sign a received Assertion
|
void |
setValidateSignatureAgainstProfile(boolean validateSignatureAgainstProfile)
Whether to validate the signature of the Assertion (if it exists) against the
relevant profile.
|
void |
setValidator(Validator validator)
Set the WSS4J Validator instance to use to validate the token.
|
protected void |
validateAssertion(SamlAssertionWrapper assertion)
Validate the assertion against schemas/profiles
|
protected boolean |
validateConditions(SamlAssertionWrapper assertion,
ReceivedToken validateTarget) |
TokenValidatorResponse |
validateToken(TokenValidatorParameters tokenParameters)
Validate a Token using the given TokenValidatorParameters.
|
public void setSubjectConstraints(List<String> subjectConstraints)
public void setValidator(Validator validator)
validator - the WSS4J Validator instance to use to validate the tokenpublic void setSamlRealmCodec(SAMLRealmCodec samlRealmCodec)
samlRealmCodec - the SAMLRealmCodec instance to use to return a realm from a validated tokenpublic boolean canHandleToken(ReceivedToken validateTarget)
canHandleToken in interface TokenValidatorpublic boolean canHandleToken(ReceivedToken validateTarget, String realm)
canHandleToken in interface TokenValidatorpublic TokenValidatorResponse validateToken(TokenValidatorParameters tokenParameters)
validateToken in interface TokenValidatorprotected void validateAssertion(SamlAssertionWrapper assertion) throws WSSecurityException
WSSecurityExceptionprotected boolean validateConditions(SamlAssertionWrapper assertion, ReceivedToken validateTarget)
public SAMLRoleParser getSamlRoleParser()
public void setSamlRoleParser(SAMLRoleParser samlRoleParser)
public boolean isValidateSignatureAgainstProfile()
public void setValidateSignatureAgainstProfile(boolean validateSignatureAgainstProfile)
Copyright © 2018 JBoss by Red Hat. All rights reserved.