Enum Class IOAuthListener.Code

java.lang.Object
java.lang.Enum<IOAuthListener.Code>
com.iizix.comm.oauth.IOAuthListener.Code
All Implemented Interfaces:
Serializable, Comparable<IOAuthListener.Code>, Constable
Enclosing interface:
IOAuthListener

public static enum IOAuthListener.Code extends Enum<IOAuthListener.Code>
Enum for the authentication codes.
  • Enum Constant Details

    • SUCCESS

      public static final IOAuthListener.Code SUCCESS
      Authentication successful.
    • INCOMPLETE

      public static final IOAuthListener.Code INCOMPLETE
      Authentication process is ongoing and has not completed.
    • USER_CANCEL

      public static final IOAuthListener.Code USER_CANCEL
      User has canceled the authentication process.
    • DISPOSED

      public static final IOAuthListener.Code DISPOSED
      Application session disposed of, authentication process aborted.
    • DISPOSED_BLOCKED

      public static final IOAuthListener.Code DISPOSED_BLOCKED
      Application session disposed of because the authentication process was blocked by the security or privacy settings of the browser.
    • DISPOSED_USER_CANCEL

      public static final IOAuthListener.Code DISPOSED_USER_CANCEL
      Application session disposed of because the authentication process was canceled by the user, closing the authentication window.
    • INVALID_REQUEST

      public static final IOAuthListener.Code INVALID_REQUEST
      The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed.
    • UNAUTHORIZED_CLIENT

      public static final IOAuthListener.Code UNAUTHORIZED_CLIENT
      The client is not authorized to request an authorization code using this method.
    • ACCESS_DENIED

      public static final IOAuthListener.Code ACCESS_DENIED
      The resource owner or authorization server denied the request.
    • INVALID_STATE

      public static final IOAuthListener.Code INVALID_STATE
      Invalid state returned in authorization.
    • UNSUPPORTED_RESPONSE_TYPE

      public static final IOAuthListener.Code UNSUPPORTED_RESPONSE_TYPE
      The authorization server does not support obtaining an authorization code using this method.
    • INVALID_SCOPE

      public static final IOAuthListener.Code INVALID_SCOPE
      The requested scope is invalid, unknown, or malformed.
    • SERVER_ERROR

      public static final IOAuthListener.Code SERVER_ERROR
      The authorization server encountered an unexpected condition that prevented it from fulfilling the request. (This error code is needed because a 500 Internal Server Error HTTP status code cannot be returned to the client via an HTTP redirect.)
    • TEMPORARILY_UNAVAILABLE

      public static final IOAuthListener.Code TEMPORARILY_UNAVAILABLE
      The authorization server is currently unable to handle the request due to a temporary overloading or maintenance of the server. (This error code is needed because a 503 Service Unavailable HTTP status code cannot be returned to the client via an HTTP redirect.)
    • UNKNOWN_ERROR

      public static final IOAuthListener.Code UNKNOWN_ERROR
      Unknown error, the server replied with a error code that does not comply with RFC 6749.
  • Method Details

    • values

      public static IOAuthListener.Code[] 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 IOAuthListener.Code 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
    • fromString

      public static IOAuthListener.Code fromString(String errorCode)
      Returns the code from a string in the HTTP reply.
      Returns:
      One of the error codes