io.vertx.ext.auth

## Class NoSuchKeyIdException

- java.lang.Object
- - java.lang.Throwable
  - - java.lang.Exception
    - - java.lang.RuntimeException
      - - io.vertx.ext.auth.NoSuchKeyIdException

- All Implemented Interfaces:
    Serializable

      public final class NoSuchKeyIdException
      extends RuntimeException

  No such KeyId exception is thrown when a JWT with a well known "kid" does not find a matching "kid" in the crypto list.
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `NoSuchKeyIdException(String alg)`
    `NoSuchKeyIdException(String alg, String kid)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `id()` Returns the missing key with the format `ALGORITHM + '#' + KEY_ID`.

    - ### 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

    - #### NoSuchKeyIdException

          public NoSuchKeyIdException(String alg)

    - #### NoSuchKeyIdException

          public NoSuchKeyIdException(String alg,
                                      String kid)

  - ### Method Detail

    - #### id

          public String id()

      Returns the missing key with the format `ALGORITHM + '#' + KEY_ID`.
      Returns:
        the id of the missing key

Copyright © 2020 Eclipse. All rights reserved.