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

      • JWTTokenValidator

        public JWTTokenValidator()
    • Method Detail

      • 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

        protected void validateToken​(JwtToken jwt)
      • getClockOffset

        public int getClockOffset()
      • setClockOffset

        public void setClockOffset​(int clockOffset)
      • getTtl

        public int getTtl()
      • setTtl

        public void setTtl​(int ttl)
      • setRoleParser

        public void setRoleParser​(JWTRoleParser roleParser)
      • setRealmCodec

        public void setRealmCodec​(JWTRealmCodec realmCodec)