Package org.gluu.oxauth.model.error
Enum Class ErrorHandlingMethod
- All Implemented Interfaces:
Serializable
,Comparable<ErrorHandlingMethod>
,java.lang.constant.Constable
,HasParamName
,org.gluu.persist.annotation.AttributeEnum
public enum ErrorHandlingMethod
extends Enum<ErrorHandlingMethod>
implements HasParamName, org.gluu.persist.annotation.AttributeEnum
This class define error handling methods
- Author:
- Javier Rojas Blum, Yuriy Movchan Date: 12/07/2018
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic ErrorHandlingMethod
fromString
(String param) Returns the correspondingGrantType
for a parameter grant_type of the access token requests.static ErrorHandlingMethod
getByValue
(String value) Gets param name.getValue()
Enum
<? extends org.gluu.persist.annotation.AttributeEnum> resolveByValue
(String value) toString()
Returns a string representation of the object.static String[]
toStringArray
(ErrorHandlingMethod[] grantTypes) static ErrorHandlingMethod
Returns the enum constant of this class with the specified name.static ErrorHandlingMethod[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INTERNAL
-
REMOTE
-
-
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
-
getParamName
Gets param name.- Specified by:
getParamName
in interfaceHasParamName
- Returns:
- param name
-
getValue
- Specified by:
getValue
in interfaceorg.gluu.persist.annotation.AttributeEnum
-
fromString
Returns the correspondingGrantType
for a parameter grant_type of the access token requests. For the extension grant type, the parameter should be a valid URI.- Parameters:
param
- The grant_type parameter.- Returns:
- The corresponding grant type if found, otherwise
null
.
-
toStringArray
-
getByValue
-
resolveByValue
- Specified by:
resolveByValue
in interfaceorg.gluu.persist.annotation.AttributeEnum
-
toString
Returns a string representation of the object. In this case the parameter name for the grant_type parameter.- Overrides:
toString
in classEnum<ErrorHandlingMethod>
- Returns:
- The string representation of the object.
-