Package io.jans.as.model.error
Enum ErrorHandlingMethod
- All Implemented Interfaces:
HasParamName,io.jans.orm.annotation.AttributeEnum,Serializable,Comparable<ErrorHandlingMethod>,java.lang.constant.Constable
public enum ErrorHandlingMethod
extends Enum<ErrorHandlingMethod>
implements HasParamName, io.jans.orm.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 ErrorHandlingMethodfromString(String param) Returns the correspondingGrantTypefor a parameter grant_type of the access token requests.static ErrorHandlingMethodgetByValue(String value) Gets param name.getValue()Enum<? extends io.jans.orm.annotation.AttributeEnum>resolveByValue(String value) toString()Returns a string representation of the object.static String[]toStringArray(ErrorHandlingMethod[] grantTypes) static ErrorHandlingMethodReturns the enum constant of this type with the specified name.static ErrorHandlingMethod[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
INTERNAL
-
REMOTE
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getParamName
Gets param name.- Specified by:
getParamNamein interfaceHasParamName- Returns:
- param name
-
getValue
- Specified by:
getValuein interfaceio.jans.orm.annotation.AttributeEnum
-
fromString
Returns the correspondingGrantTypefor 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:
resolveByValuein interfaceio.jans.orm.annotation.AttributeEnum
-
toString
Returns a string representation of the object. In this case the parameter name for the grant_type parameter.- Overrides:
toStringin classEnum<ErrorHandlingMethod>- Returns:
- The string representation of the object.
-