Class SCTValidator
- java.lang.Object
-
- org.apache.cxf.sts.token.validator.SCTValidator
-
- All Implemented Interfaces:
TokenValidator
public class SCTValidator extends Object implements TokenValidator
This class validates a SecurityContextToken.
-
-
Field Summary
Fields Modifier and Type Field Description static StringSCT_VALIDATOR_SECRETThis tag refers to the secret key (byte[]) associated with a SecurityContextToken that has been validated.
-
Constructor Summary
Constructors Constructor Description SCTValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanHandleToken(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.TokenValidatorResponsevalidateToken(TokenValidatorParameters tokenParameters)Validate a Token using the given TokenValidatorParameters.
-
-
-
Field Detail
-
SCT_VALIDATOR_SECRET
public static final String SCT_VALIDATOR_SECRET
This tag refers to the secret key (byte[]) associated with a SecurityContextToken that has been validated. It is inserted into the additional properties map of the response, so that it can be retrieved and inserted into a generated token by a TokenProvider instance.- See Also:
- Constant Field Values
-
-
Method Detail
-
canHandleToken
public boolean canHandleToken(ReceivedToken validateTarget)
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
-
canHandleToken
public boolean canHandleToken(ReceivedToken validateTarget, String realm)
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
public TokenValidatorResponse validateToken(TokenValidatorParameters tokenParameters)
Validate a Token using the given TokenValidatorParameters.- Specified by:
validateTokenin interfaceTokenValidator
-
-