Apache CXF API

org.apache.cxf.sts.token.validator
Class SCTValidator

java.lang.Object
  extended by 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
static String SCT_VALIDATOR_SECRET
          This tag refers to the secret key (byte[]) associated with a SecurityContextToken that has been validated.
 
Constructor Summary
SCTValidator()
           
 
Method Summary
 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.
 TokenValidatorResponse validateToken(TokenValidatorParameters tokenParameters)
          Validate a Token using the given TokenValidatorParameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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
Constructor Detail

SCTValidator

public SCTValidator()
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:
canHandleToken in interface TokenValidator

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:
canHandleToken in interface TokenValidator

validateToken

public TokenValidatorResponse validateToken(TokenValidatorParameters tokenParameters)
Validate a Token using the given TokenValidatorParameters.

Specified by:
validateToken in interface TokenValidator

Apache CXF API

Apache CXF