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