Package com.iizix.comm.oauth
Enum Class IOAuthListener.Code
- All Implemented Interfaces:
Serializable
,Comparable<IOAuthListener.Code>
,Constable
- Enclosing interface:
- IOAuthListener
Enum for the authentication codes.
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Enum Constant Summary
Enum ConstantDescriptionThe resource owner or authorization server denied the request.Application session disposed of, authentication process aborted.Application session disposed of because the authentication process was blocked by the security or privacy settings of the browser.Application session disposed of because the authentication process was canceled by the user, closing the authentication window.Authentication process is ongoing and has not completed.The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed.The requested scope is invalid, unknown, or malformed.Invalid state returned in authorization.The authorization server encountered an unexpected condition that prevented it from fulfilling the request.Authentication successful.The authorization server is currently unable to handle the request due to a temporary overloading or maintenance of the server.The client is not authorized to request an authorization code using this method.Unknown error, the server replied with a error code that does not comply with RFC 6749.The authorization server does not support obtaining an authorization code using this method.User has canceled the authentication process.Method Summary
Modifier and TypeMethodDescriptionstatic IOAuthListener.Code
fromString
(String errorCode) Returns the code from a string in the HTTP reply.static IOAuthListener.Code
Returns the enum constant of this class with the specified name.static IOAuthListener.Code[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
Enum Constant Details
SUCCESS
Authentication successful.INCOMPLETE
Authentication process is ongoing and has not completed.USER_CANCEL
User has canceled the authentication process.DISPOSED
Application session disposed of, authentication process aborted.DISPOSED_BLOCKED
Application session disposed of because the authentication process was blocked by the security or privacy settings of the browser.DISPOSED_USER_CANCEL
Application session disposed of because the authentication process was canceled by the user, closing the authentication window.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
The client is not authorized to request an authorization code using this method.ACCESS_DENIED
The resource owner or authorization server denied the request.INVALID_STATE
Invalid state returned in authorization.UNSUPPORTED_RESPONSE_TYPE
The authorization server does not support obtaining an authorization code using this method.INVALID_SCOPE
The requested scope is invalid, unknown, or malformed.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
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
Unknown error, the server replied with a error code that does not comply with RFC 6749.
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
fromString
Returns the code from a string in the HTTP reply.- Returns:
- One of the error codes