Class OAuth2Parameters
- java.lang.Object
-
- org.glassfish.jersey.client.oauth2.OAuth2Parameters
-
public final class OAuth2Parameters extends Object
Class that contains definition od parameters used in OAuth2.- Since:
- 2.3
- Author:
- Miroslav Fuksa
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOAuth2Parameters.GrantTypeParametergrant_typeused in the access token request.
-
Field Summary
Fields Modifier and Type Field Description static StringCLIENT_IDParameterclient_idthat corresponds to (ClientIdentifier.getClientId()).static StringCLIENT_SECRETParameterclient_secretthat corresponds to (ClientIdentifier.getClientSecret()).static StringCODEAuthorization codestatic StringREDIRECT_URIParameterresponse_typeused in the authorization request.static StringREDIRECT_URI_UNDEFINEDstatic StringREFRESH_TOKENParameterrefresh_tokencontains Refresh Token (corresponds toTokenResult.getRefreshToken()).static StringRESPONSE_TYPEParameterresponse_typeused in the authorization request.static StringSCOPEParameterscopethat defines the scope to which an authorization is requested.static StringSTATEState parameter used in the authorization request and authorization response to protect against CSRF attacks.
-
-
-
Field Detail
-
CLIENT_ID
public static final String CLIENT_ID
Parameterclient_idthat corresponds to (ClientIdentifier.getClientId()).- See Also:
- Constant Field Values
-
CLIENT_SECRET
public static final String CLIENT_SECRET
Parameterclient_secretthat corresponds to (ClientIdentifier.getClientSecret()).- See Also:
- Constant Field Values
-
RESPONSE_TYPE
public static final String RESPONSE_TYPE
Parameterresponse_typeused in the authorization request. For Authorization Code Grant Flow the value iscode.- See Also:
- Constant Field Values
-
REDIRECT_URI
public static final String REDIRECT_URI
Parameterresponse_typeused in the authorization request.- See Also:
- Constant Field Values
-
SCOPE
public static final String SCOPE
Parameterscopethat defines the scope to which an authorization is requested. Space delimited format. Scope values are defined by the Service Provider.- See Also:
- Constant Field Values
-
STATE
public static final String STATE
State parameter used in the authorization request and authorization response to protect against CSRF attacks.- See Also:
- Constant Field Values
-
REFRESH_TOKEN
public static final String REFRESH_TOKEN
Parameterrefresh_tokencontains Refresh Token (corresponds toTokenResult.getRefreshToken()).- See Also:
- Constant Field Values
-
CODE
public static final String CODE
Authorization code- See Also:
- Constant Field Values
-
REDIRECT_URI_UNDEFINED
public static final String REDIRECT_URI_UNDEFINED
- See Also:
- Constant Field Values
-
-