Package com.iizix.comm.oauth
Enum IOAuthListener.Code
- java.lang.Object
- java.lang.Enum<IOAuthListener.Code>
- com.iizix.comm.oauth.IOAuthListener.Code
 
 
- All Implemented Interfaces:
- java.io.Serializable,- java.lang.Comparable<IOAuthListener.Code>
 - Enclosing interface:
- IOAuthListener
 - public static enum IOAuthListener.Code extends java.lang.Enum<IOAuthListener.Code> Enum for the authentication codes.
- Enum Constant Summary- Enum Constants - Enum Constant - Description - ACCESS_DENIEDThe resource owner or authorization server denied the request.- DISPOSEDApplication session disposed of, authentication process aborted.- DISPOSED_BLOCKEDApplication session disposed of because the authentication process was blocked by the security or privacy settings of the browser.- DISPOSED_USER_CANCELApplication session disposed of because the authentication process was canceled by the user, closing the authentication window.- INCOMPLETEAuthentication process is ongoing and has not completed.- INVALID_REQUESTThe request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed.- INVALID_SCOPEThe requested scope is invalid, unknown, or malformed.- INVALID_STATEInvalid state returned in authorization.- SERVER_ERRORThe authorization server encountered an unexpected condition that prevented it from fulfilling the request.- SUCCESSAuthentication successful.- TEMPORARILY_UNAVAILABLEThe authorization server is currently unable to handle the request due to a temporary overloading or maintenance of the server.- UNAUTHORIZED_CLIENTThe client is not authorized to request an authorization code using this method.- UNKNOWN_ERRORUnknown error, the server replied with a error code that does not comply with RFC 6749.- UNSUPPORTED_RESPONSE_TYPEThe authorization server does not support obtaining an authorization code using this method.- USER_CANCELUser has canceled the authentication process.
 - Method Summary- All Methods Static Methods Concrete Methods - Modifier and Type - Method - Description - static IOAuthListener.Code- fromString(java.lang.String errorCode)Returns the code from a string in the HTTP reply.- static IOAuthListener.Code- valueOf(java.lang.String name)Returns the enum constant of this type with the specified name.- static IOAuthListener.Code[]- values()Returns an array containing the constants of this enum type, in the order they are declared.
 
- Enum Constant Detail- 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 Detail- values- public static IOAuthListener.Code[] values() Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:- for (IOAuthListener.Code c : IOAuthListener.Code.values()) System.out.println(c); - Returns:
- an array containing the constants of this enum type, in the order they are declared
 
 - valueOf- public static IOAuthListener.Code valueOf(java.lang.String name) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
- java.lang.IllegalArgumentException- if this enum type has no constant with the specified name
- java.lang.NullPointerException- if the argument is null
 
 - fromString- public static IOAuthListener.Code fromString(java.lang.String errorCode) Returns the code from a string in the HTTP reply.- Returns:
- One of the error codes