Class UnrecognizedCriticalHeaderException

All Implemented Interfaces:
Serializable

public class UnrecognizedCriticalHeaderException extends JwtReconstructionException
Indicates that the JWT had critical headers that were not recognized by the JWT library and not implemented by the application.
See Also:
  • Constructor Details

    • UnrecognizedCriticalHeaderException

      public UnrecognizedCriticalHeaderException(Collection<String> unrecognizedCriticalHeaders)
      Initializes the exception with the given list of unrecognized critical headers that caused processing to fail.
      Parameters:
      unrecognizedCriticalHeaders - the collection of unrecognized headers.
  • Method Details

    • getUnrecognizedCriticalHeaders

      public Set<String> getUnrecognizedCriticalHeaders()
      The unrecognized critical headers that caused processing to fail.
      Returns:
      the set of unrecognized critical headers.