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