Enum Class OahSignupTokenErrorCode
java.lang.Object
java.lang.Enum<OahSignupTokenErrorCode>
com.github.catomat0.oauthhelper.signuptoken.OahSignupTokenErrorCode
- All Implemented Interfaces:
Serializable,Comparable<OahSignupTokenErrorCode>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription쿠키 설정 불일치 — same-site=None 인데 secure=false (브라우저가 쿠키 drop).expiration 값이 0 이하.signup-token.redis-key-prefix 가 jwt.redis-key-prefix 와 동일 (Redis 키 충돌 위험).signup-token.secret-key 가 설정되지 않음 (startup).signup-token.secret-key 가 32byte 미만 (HS256 최소 요건 미달, startup).토큰 타입이 SIGNUP 이 아님 (다른 종류 JWT 를 signup 자리에 넣음). -
Method Summary
Modifier and TypeMethodDescriptionstatic OahSignupTokenErrorCodeReturns the enum constant of this class with the specified name.static OahSignupTokenErrorCode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SECRET_KEY_MISSING
signup-token.secret-key 가 설정되지 않음 (startup). -
SECRET_KEY_TOO_SHORT
signup-token.secret-key 가 32byte 미만 (HS256 최소 요건 미달, startup). -
COOKIE_INSECURE_SAMESITE
쿠키 설정 불일치 — same-site=None 인데 secure=false (브라우저가 쿠키 drop). -
EXPIRATION_INVALID
expiration 값이 0 이하. -
TOKEN_TYPE_MISMATCH
토큰 타입이 SIGNUP 이 아님 (다른 종류 JWT 를 signup 자리에 넣음). -
REDIS_PREFIX_COLLISION
signup-token.redis-key-prefix 가 jwt.redis-key-prefix 와 동일 (Redis 키 충돌 위험).
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-