Class UsernameTokenValidator
java.lang.Object
org.apache.cxf.sts.token.validator.UsernameTokenValidator
- All Implemented Interfaces:
TokenValidator
This class validates a wsse UsernameToken.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanHandleToken(ReceivedToken validateTarget) Return true if this TokenValidator implementation is capable of validating the ReceivedToken argument.booleancanHandleToken(ReceivedToken validateTarget, String realm) Return true if this TokenValidator implementation is capable of validating the ReceivedToken argument.voidsetRoleParser(SubjectRoleParser roleParser) voidsetUsernameTokenRealmCodec(UsernameTokenRealmCodec usernameTokenRealmCodec) Set the UsernameTokenRealmCodec instance to use to return a realm from a validated tokenvoidsetValidator(org.apache.wss4j.dom.validate.Validator validator) Set the WSS4J Validator instance to use to validate the token.validateToken(TokenValidatorParameters tokenParameters) Validate a Token using the given TokenValidatorParameters.
-
Constructor Details
-
UsernameTokenValidator
public UsernameTokenValidator()
-
-
Method Details
-
setValidator
public void setValidator(org.apache.wss4j.dom.validate.Validator validator) Set the WSS4J Validator instance to use to validate the token.- Parameters:
validator- the WSS4J Validator instance to use to validate the token
-
setUsernameTokenRealmCodec
Set the UsernameTokenRealmCodec instance to use to return a realm from a validated token- Parameters:
usernameTokenRealmCodec- the UsernameTokenRealmCodec instance to use to return a realm from a validated token
-
canHandleToken
Return true if this TokenValidator implementation is capable of validating the ReceivedToken argument.- Specified by:
canHandleTokenin interfaceTokenValidator
-
canHandleToken
Return true if this TokenValidator implementation is capable of validating the ReceivedToken argument. The realm is ignored in this token Validator.- Specified by:
canHandleTokenin interfaceTokenValidator
-
validateToken
Validate a Token using the given TokenValidatorParameters.- Specified by:
validateTokenin interfaceTokenValidator
-
getRoleParser
-
setRoleParser
-