Enum Class OahErrorCode

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

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

    • PROVIDER_UNKNOWN

      public static final OahErrorCode PROVIDER_UNKNOWN
      알 수 없는 provider 이름 (kakao/google 이외).
    • PROVIDER_NOT_CONFIGURED

      public static final OahErrorCode PROVIDER_NOT_CONFIGURED
      provider config 미설정 (client-id 없음).
    • PROVIDER_INCOMPLETE

      public static final OahErrorCode PROVIDER_INCOMPLETE
      provider client-id 는 있으나 다른 필수 필드가 누락됨 (startup).
    • INSECURE_URI

      public static final OahErrorCode INSECURE_URI
      provider config 의 token-uri / user-info-uri 가 http:// 로 시작.
    • STATE_TTL_INVALID

      public static final OahErrorCode STATE_TTL_INVALID
      oauth.state-ttl-seconds 가 0 이하 (startup).
    • TOKEN_EXCHANGE_FAILED

      public static final OahErrorCode TOKEN_EXCHANGE_FAILED
      code -> access_token 교환 HTTP 호출 실패 (네트워크/4xx/5xx).
    • TOKEN_EXCHANGE_EMPTY

      public static final OahErrorCode TOKEN_EXCHANGE_EMPTY
      code -> access_token 응답이 비어있음 (200 이지만 access_token null).
    • USERINFO_FETCH_FAILED

      public static final OahErrorCode USERINFO_FETCH_FAILED
      userinfo 호출 HTTP 실패.
    • USERINFO_EMPTY

      public static final OahErrorCode USERINFO_EMPTY
      userinfo 응답이 비어있음.
    • EMAIL_MISSING

      public static final OahErrorCode EMAIL_MISSING
      userinfo 응답에 email 이 없음. provider 콘솔에서 email scope/동의항목 필수 설정 필요.
    • STATE_INVALID

      public static final OahErrorCode STATE_INVALID
      OAuth state 파라미터 검증 실패 (CSRF 공격 or 만료된 state).
    • REDIS_PREFIX_COLLISION

      public static final OahErrorCode REDIS_PREFIX_COLLISION
      oauth.state-redis-key-prefix 가 다른 서비스의 Redis prefix 와 동일 (충돌 위험).
  • Method Details

    • values

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