Enum Class OahJwtErrorCode

java.lang.Object
java.lang.Enum<OahJwtErrorCode>
com.github.catomat0.oauthhelper.jwt.OahJwtErrorCode
All Implemented Interfaces:
Serializable, Comparable<OahJwtErrorCode>, Constable

public enum OahJwtErrorCode extends Enum<OahJwtErrorCode>
  • Enum Constant Details

    • SECRET_KEY_MISSING

      public static final OahJwtErrorCode SECRET_KEY_MISSING
      jwt.secret-key 가 설정되지 않음 (startup).
    • SECRET_KEY_TOO_SHORT

      public static final OahJwtErrorCode SECRET_KEY_TOO_SHORT
      jwt.secret-key 가 32byte 미만 (HS256 최소 요건 미달, startup).
    • TOKEN_TYPE_MISMATCH

      public static final OahJwtErrorCode TOKEN_TYPE_MISMATCH
      토큰 파싱 시 type 클레임이 기대값과 다름 (예: access 자리에 refresh 넣음).
    • EXPIRATION_INVALID

      public static final OahJwtErrorCode EXPIRATION_INVALID
      access/refresh expiration 값이 0 이하이거나 refresh < access (startup).
  • Method Details

    • values

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

      public static OahJwtErrorCode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null