Enum Class FlowType
- All Implemented Interfaces:
Serializable,Comparable<FlowType>,Constable
Enum to represent the different types of OAuth2 flows supported by the provider
- Since:
- 3.1.14
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe Authorization Code grant type is designed to acquire access tokens and refresh tokens.The Client Credentials grant type is suitable for machine-to-machine authentication.PKCE is an extension to the Authorization Code flow to prevent CSRF and authorization code injection attacks.The Refresh Token grant type is used to obtain a new access token by using a refresh token. -
Field Summary
FieldsModifier and TypeFieldDescriptionFlows that do not require a client secret -
Method Summary
Modifier and TypeMethodDescriptionstatic FlowTypefromIdentifier(String identifier) static booleanisClientCredentials(String flowIdentifier) Deprecated, for removal: This API element is subject to removal in a future version.will be removed in the 6.x major version.static FlowTypeReturns the enum constant of this class with the specified name.static FlowType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PKCE
PKCE is an extension to the Authorization Code flow to prevent CSRF and authorization code injection attacks. -
AUTHORIZATION_CODE
The Authorization Code grant type is designed to acquire access tokens and refresh tokens. Being a redirection-based process, it requires the client to interact with the resource owner's user-agent, usually a web browser, and to accept incoming requests redirected from the authorization server. -
CLIENT_CREDENTIALS
The Client Credentials grant type is suitable for machine-to-machine authentication. It is used to request an access token using only the client credentials, without any user authentication.- Since:
- 4.2.0
-
REFRESH_TOKEN
The Refresh Token grant type is used to obtain a new access token by using a refresh token. This is useful when the access token has expired and the client needs to obtain a new one without requiring user interaction.- Since:
- 5.0.0
-
-
Field Details
-
PUBLIC_FLOWS
Flows that do not require a client secret
-
-
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
-
fromIdentifier
-
getFlowIdentifier
-
isClientCredentials
Deprecated, for removal: This API element is subject to removal in a future version.will be removed in the 6.x major version.
-