public class UsernameTokenValidator extends Object implements TokenValidator
Constructor and Description |
---|
UsernameTokenValidator() |
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.
|
SubjectRoleParser |
getRoleParser() |
void |
setRoleParser(SubjectRoleParser roleParser) |
void |
setUsernameTokenRealmCodec(UsernameTokenRealmCodec usernameTokenRealmCodec)
Set the UsernameTokenRealmCodec instance to use to return a realm from a validated token
|
void |
setValidator(org.apache.wss4j.dom.validate.Validator validator)
Set the WSS4J Validator instance to use to validate the token.
|
TokenValidatorResponse |
validateToken(TokenValidatorParameters tokenParameters)
Validate a Token using the given TokenValidatorParameters.
|
public void setValidator(org.apache.wss4j.dom.validate.Validator validator)
validator
- the WSS4J Validator instance to use to validate the tokenpublic void setUsernameTokenRealmCodec(UsernameTokenRealmCodec usernameTokenRealmCodec)
usernameTokenRealmCodec
- the UsernameTokenRealmCodec instance to use to return a
realm from a validated tokenpublic boolean canHandleToken(ReceivedToken validateTarget)
canHandleToken
in interface TokenValidator
public boolean canHandleToken(ReceivedToken validateTarget, String realm)
canHandleToken
in interface TokenValidator
public TokenValidatorResponse validateToken(TokenValidatorParameters tokenParameters)
validateToken
in interface TokenValidator
public SubjectRoleParser getRoleParser()
public void setRoleParser(SubjectRoleParser roleParser)
Apache CXF