Class OAuth2Parameters
java.lang.Object
org.glassfish.jersey.client.oauth2.OAuth2Parameters
Class that contains definition od parameters used in OAuth2.
- Since:
- 2.3
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Parametergrant_type
used in the access token request. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Parameterclient_id
that corresponds to (ClientIdentifier.getClientId()
).static final String
Parameterclient_secret
that corresponds to (ClientIdentifier.getClientSecret()
).static final String
Authorization codestatic final String
Parameterresponse_type
used in the authorization request.static final String
static final String
Parameterrefresh_token
contains Refresh Token (corresponds toTokenResult.getRefreshToken()
).static final String
Parameterresponse_type
used in the authorization request.static final String
Parameterscope
that defines the scope to which an authorization is requested.static final String
State parameter used in the authorization request and authorization response to protect against CSRF attacks. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
CLIENT_ID
Parameterclient_id
that corresponds to (ClientIdentifier.getClientId()
).- See Also:
-
CLIENT_SECRET
Parameterclient_secret
that corresponds to (ClientIdentifier.getClientSecret()
).- See Also:
-
RESPONSE_TYPE
Parameterresponse_type
used in the authorization request. For Authorization Code Grant Flow the value iscode
.- See Also:
-
REDIRECT_URI
Parameterresponse_type
used in the authorization request.- See Also:
-
SCOPE
Parameterscope
that 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_token
contains Refresh Token (corresponds toTokenResult.getRefreshToken()
).- See Also:
-
CODE
Authorization code- See Also:
-
REDIRECT_URI_UNDEFINED
- See Also:
-
-
Constructor Details
-
OAuth2Parameters
private OAuth2Parameters()Prevent instantiation.
-