org.keycloak.exceptions

## Class TokenNotActiveException

- java.lang.Object
- - java.lang.Throwable
  - - java.lang.Exception
    - - org.keycloak.common.VerificationException
      - - org.keycloak.exceptions.TokenVerificationException
        - - org.keycloak.exceptions.TokenNotActiveException

- All Implemented Interfaces:
    Serializable

      public class TokenNotActiveException
      extends TokenVerificationException

  Exception thrown for cases when token is invalid due to time constraints (expired, or not yet valid). Cf. `JsonWebToken.isActive()`.
  Author:
    hmlnarik
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `TokenNotActiveException(JsonWebToken token)`
    `TokenNotActiveException(JsonWebToken token, String message)`
    `TokenNotActiveException(JsonWebToken token, String message, Throwable cause)`
    `TokenNotActiveException(JsonWebToken token, Throwable cause)`

  - ### Method Summary

    - ### Methods inherited from class org.keycloak.exceptions.TokenVerificationException

      `getToken`

    - ### Methods inherited from class java.lang.Throwable

      `addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### TokenNotActiveException

          public TokenNotActiveException(JsonWebToken token)

    - #### TokenNotActiveException

          public TokenNotActiveException(JsonWebToken token,
                                         String message)

    - #### TokenNotActiveException

          public TokenNotActiveException(JsonWebToken token,
                                         String message,
                                         Throwable cause)

    - #### TokenNotActiveException

          public TokenNotActiveException(JsonWebToken token,
                                         Throwable cause)

Copyright © 2021 JBoss by Red Hat. All rights reserved.