Class JWTTokenValidator

java.lang.Object
org.apache.cxf.sts.token.validator.jwt.JWTTokenValidator
All Implemented Interfaces:
TokenValidator

public class JWTTokenValidator extends Object implements TokenValidator
Validate a SAML Assertion. It is valid if it was issued and signed by this STS.
  • Constructor Details

    • JWTTokenValidator

      public JWTTokenValidator()
  • Method Details

    • canHandleToken

      public boolean canHandleToken(ReceivedToken validateTarget)
      Return true if this TokenValidator implementation is capable of validating the ReceivedToken argument.
      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 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
    • validateToken

      protected void validateToken(org.apache.cxf.rs.security.jose.jwt.JwtToken jwt)
    • getClockOffset

      public int getClockOffset()
    • setClockOffset

      public void setClockOffset(int clockOffset)
    • getTtl

      public int getTtl()
    • setTtl

      public void setTtl(int ttl)
    • getRoleParser

      public JWTRoleParser getRoleParser()
    • setRoleParser

      public void setRoleParser(JWTRoleParser roleParser)
    • getRealmCodec

      public JWTRealmCodec getRealmCodec()
    • setRealmCodec

      public void setRealmCodec(JWTRealmCodec realmCodec)