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 Details

    • 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:
  • Constructor Details

    • SCTValidator

      public SCTValidator()
  • Method Details

    • 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