org.glassfish.jersey.client.oauth2
Class OAuth2Parameters

java.lang.Object
  extended by 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 (miroslav.fuksa at oracle.com)

Nested Class Summary
static class OAuth2Parameters.GrantType
          Parameter grant_type used in the access token request.
 
Field Summary
static String CLIENT_ID
          Parameter client_id that corresponds to (ClientIdentifier.getClientId()).
static String CLIENT_SECRET
          Parameter client_secret that corresponds to (ClientIdentifier.getClientSecret()).
static String CODE
          Authorization code
static String REDIRECT_URI
          Parameter response_type used in the authorization request.
static String REDIRECT_URI_UNDEFINED
           
static String REFRESH_TOKEN
          Parameter refresh_token contains Refresh Token (corresponds to TokenResult.getRefreshToken()).
static String RESPONSE_TYPE
          Parameter response_type used in the authorization request.
static String SCOPE
          Parameter scope that defines the scope to which an authorization is requested.
static String STATE
          State parameter used in the authorization request and authorization response to protect against CSRF attacks.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLIENT_ID

public static final String CLIENT_ID
Parameter client_id that corresponds to (ClientIdentifier.getClientId()).

See Also:
Constant Field Values

CLIENT_SECRET

public static final String CLIENT_SECRET
Parameter client_secret that corresponds to (ClientIdentifier.getClientSecret()).

See Also:
Constant Field Values

RESPONSE_TYPE

public static final String RESPONSE_TYPE
Parameter response_type used in the authorization request. For Authorization Code Grant Flow the value is code.

See Also:
Constant Field Values

REDIRECT_URI

public static final String REDIRECT_URI
Parameter response_type used in the authorization request.

See Also:
Constant Field Values

SCOPE

public static final String SCOPE
Parameter scope 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 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
Parameter refresh_token contains Refresh Token (corresponds to TokenResult.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


Copyright © 2007-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.