Package org.apereo.cas.support.oauth
Enum Class OAuth20GrantTypes
- All Implemented Interfaces:
Serializable,Comparable<OAuth20GrantTypes>,Constable
The OAuth grant types (on the access token request).
- Since:
- 5.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionFor the authorization grant type.For the client credentials grant type.Grant type designated for device code flows.Indicates the absence of invalidity of a grant type.For the resource owner password grant type.For the refresh token grant type.UMA ticket grant type. -
Method Summary
Modifier and TypeMethodDescriptiongetType()static OAuth20GrantTypesReturns the enum constant of this class with the specified name.static OAuth20GrantTypes[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
NONE
Indicates the absence of invalidity of a grant type. -
DEVICE_CODE
Grant type designated for device code flows. -
AUTHORIZATION_CODE
For the authorization grant type. -
PASSWORD
For the resource owner password grant type. -
CLIENT_CREDENTIALS
For the client credentials grant type. -
REFRESH_TOKEN
For the refresh token grant type. -
UMA_TICKET
UMA ticket grant type.
-
-
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
-
getType
-