Enum Class OAuth2CodeGrantFlow.Phase
java.lang.Object
java.lang.Enum<OAuth2CodeGrantFlow.Phase>
org.glassfish.jersey.client.oauth2.OAuth2CodeGrantFlow.Phase
- All Implemented Interfaces:
Serializable,Comparable<OAuth2CodeGrantFlow.Phase>,Constable
- Enclosing interface:
- OAuth2CodeGrantFlow
Phase of the Authorization Code Grant Flow.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRequesting the access token phase.All phases.Authorization phase.Refreshing the access token phase. -
Method Summary
Modifier and TypeMethodDescriptionabstract voidproperty(String key, String value, Map<String, String> authorizationProps, Map<String, String> accessTokenProps, Map<String, String> refreshTokenProps) Set property defined bykeyandvalueto the appropriate property map based on this phase.static OAuth2CodeGrantFlow.PhaseReturns the enum constant of this class with the specified name.static OAuth2CodeGrantFlow.Phase[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AUTHORIZATION
Authorization phase. The phase when user is redirected to the authorization server to authorize the application. -
ACCESS_TOKEN_REQUEST
Requesting the access token phase. -
REFRESH_ACCESS_TOKEN
Refreshing the access token phase. -
ALL
All phases.
-
-
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
-
property
public abstract void property(String key, String value, Map<String, String> authorizationProps, Map<String, String> accessTokenProps, Map<String, String> refreshTokenProps) Set property defined bykeyandvalueto the appropriate property map based on this phase.- Parameters:
key- Property key.value- Property value.authorizationProps- Properties used in construction of redirect URI.accessTokenProps- Properties (parameters) used in access token request.refreshTokenProps- Properties (parameters) used in request for refreshing the access token.
-