Class OAuth2Parameters
java.lang.Object
org.glassfish.jersey.client.oauth2.OAuth2Parameters
Class that contains definition od parameters used in OAuth2.
- Since:
- 2.3
- Author:
- Miroslav Fuksa
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumParametergrant_typeused in the access token request. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringParameterclient_idthat corresponds to (ClientIdentifier.getClientId()).static final StringParameterclient_secretthat corresponds to (ClientIdentifier.getClientSecret()).static final StringAuthorization codestatic final StringParameterresponse_typeused in the authorization request.static final Stringstatic final StringParameterrefresh_tokencontains Refresh Token (corresponds toTokenResult.getRefreshToken()).static final StringParameterresponse_typeused in the authorization request.static final StringParameterscopethat defines the scope to which an authorization is requested.static final StringState parameter used in the authorization request and authorization response to protect against CSRF attacks. -
Method Summary
-
Field Details
-
CLIENT_ID
Parameterclient_idthat corresponds to (ClientIdentifier.getClientId()).- See Also:
-
CLIENT_SECRET
Parameterclient_secretthat corresponds to (ClientIdentifier.getClientSecret()).- See Also:
-
RESPONSE_TYPE
Parameterresponse_typeused in the authorization request. For Authorization Code Grant Flow the value iscode.- See Also:
-
REDIRECT_URI
Parameterresponse_typeused in the authorization request.- See Also:
-
SCOPE
Parameterscopethat defines the scope to which an authorization is requested. Space delimited format. Scope values are defined by the Service Provider.- See Also:
-
STATE
State parameter used in the authorization request and authorization response to protect against CSRF attacks.- See Also:
-
REFRESH_TOKEN
Parameterrefresh_tokencontains Refresh Token (corresponds toTokenResult.getRefreshToken()).- See Also:
-
CODE
Authorization code- See Also:
-
REDIRECT_URI_UNDEFINED
- See Also:
-