Enum Class OahSignupTokenErrorCode

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

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

    • SECRET_KEY_MISSING

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

      public static final OahSignupTokenErrorCode SECRET_KEY_TOO_SHORT
      signup-token.secret-key 가 32byte 미만 (HS256 최소 요건 미달, startup).
    • EXPIRATION_INVALID

      public static final OahSignupTokenErrorCode EXPIRATION_INVALID
      expiration 값이 0 이하.
    • TOKEN_TYPE_MISMATCH

      public static final OahSignupTokenErrorCode TOKEN_TYPE_MISMATCH
      토큰 타입이 SIGNUP 이 아님 (다른 종류 JWT 를 signup 자리에 넣음).
    • REDIS_PREFIX_COLLISION

      public static final OahSignupTokenErrorCode REDIS_PREFIX_COLLISION
      signup-token.redis-key-prefix 가 jwt.redis-key-prefix 와 동일 (Redis 키 충돌 위험).
  • Method Details

    • values

      public static OahSignupTokenErrorCode[] 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 OahSignupTokenErrorCode 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