Enum SecurityErrorType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<SecurityErrorType>, java.lang.constant.Constable

    public enum SecurityErrorType
    extends java.lang.Enum<SecurityErrorType>
    Reason when a parsing error occurs on a JWS token;
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.lang.Enum

        java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
    • Method Summary

      Modifier and Type Method Description
      java.lang.String getReason()  
      SecurityException toException()  
      static SecurityErrorType valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static SecurityErrorType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • JWT_UNSUPPORTED

        public static final SecurityErrorType JWT_UNSUPPORTED
        see [io.jsonwebtoken.UnsupportedJwtException]
      • JWT_MALFORMED

        public static final SecurityErrorType JWT_MALFORMED
        [io.jsonwebtoken.MalformedJwtException]
      • JWT_EXPIRED

        public static final SecurityErrorType JWT_EXPIRED
        [io.jsonwebtoken.ExpiredJwtException]
      • JWT_WRONG_SIGNATURE

        public static final SecurityErrorType JWT_WRONG_SIGNATURE
        [io.jsonwebtoken.SignatureException]
      • AUTHORIZATION_HEADER_MISSING

        public static final SecurityErrorType AUTHORIZATION_HEADER_MISSING
        When the HTTP Authorization header is not present
      • AUTHORIZATION_HEADER_WRONG_FORMAT

        public static final SecurityErrorType AUTHORIZATION_HEADER_WRONG_FORMAT
        When the HTTP Authorization header does not contain a schema and a token
      • AUTHORIZATION_HEADER_WRONG_SCHEME

        public static final SecurityErrorType AUTHORIZATION_HEADER_WRONG_SCHEME
        When the HTTP Authorization header does not have the "Bearer" scheme.
    • Method Detail

      • values

        public static SecurityErrorType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared.
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static SecurityErrorType valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getReason

        public java.lang.String getReason()