|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.api.client.auth.oauth2.AuthorizationCodeFlow.Builder
public static class AuthorizationCodeFlow.Builder
Authorization code flow builder.
Implementation is not thread-safe.
| Constructor Summary | |
|---|---|
AuthorizationCodeFlow.Builder(Credential.AccessMethod method,
HttpTransport transport,
JsonFactory jsonFactory,
GenericUrl tokenServerUrl,
HttpExecuteInterceptor clientAuthentication,
String clientId,
String authorizationServerEncodedUrl)
|
|
| Method Summary | |
|---|---|
AuthorizationCodeFlow |
build()
Returns a new instance of an authorization code flow based on this builder. |
String |
getAuthorizationServerEncodedUrl()
Returns the authorization server encoded URL. |
HttpExecuteInterceptor |
getClientAuthentication()
Returns the client authentication or null for none (see
TokenRequest.setClientAuthentication(HttpExecuteInterceptor)). |
String |
getClientId()
Returns the client identifier. |
CredentialStore |
getCredentialStore()
Returns the credential persistence store or null for none. |
JsonFactory |
getJsonFactory()
Returns the JSON factory. |
Credential.AccessMethod |
getMethod()
Returns the method of presenting the access token to the resource server (for example BearerToken.authorizationHeaderAccessMethod()). |
HttpRequestInitializer |
getRequestInitializer()
Returns the HTTP request initializer or null for none. |
String |
getScopes()
Returns the space-separated list of scopes or null for none. |
GenericUrl |
getTokenServerUrl()
Returns the token server URL. |
HttpTransport |
getTransport()
Returns the HTTP transport. |
AuthorizationCodeFlow.Builder |
setCredentialStore(CredentialStore credentialStore)
Sets the credential persistence store or null for none. |
AuthorizationCodeFlow.Builder |
setRequestInitializer(HttpRequestInitializer requestInitializer)
Sets the HTTP request initializer or null for none. |
AuthorizationCodeFlow.Builder |
setScopes(Iterable<String> scopes)
Sets the list of scopes or null for none. |
AuthorizationCodeFlow.Builder |
setScopes(String... scopes)
Sets the list of scopes or null for none. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AuthorizationCodeFlow.Builder(Credential.AccessMethod method,
HttpTransport transport,
JsonFactory jsonFactory,
GenericUrl tokenServerUrl,
HttpExecuteInterceptor clientAuthentication,
String clientId,
String authorizationServerEncodedUrl)
method - method of presenting the access token to the resource server (for example
BearerToken.authorizationHeaderAccessMethod())transport - HTTP transportjsonFactory - JSON factorytokenServerUrl - token server URLclientAuthentication - client authentication or null for none (see
TokenRequest.setClientAuthentication(HttpExecuteInterceptor))clientId - client identifierauthorizationServerEncodedUrl - authorization server encoded URL| Method Detail |
|---|
public AuthorizationCodeFlow build()
public final Credential.AccessMethod getMethod()
BearerToken.authorizationHeaderAccessMethod()).
public final HttpTransport getTransport()
public final JsonFactory getJsonFactory()
public final GenericUrl getTokenServerUrl()
public final HttpExecuteInterceptor getClientAuthentication()
null for none (see
TokenRequest.setClientAuthentication(HttpExecuteInterceptor)).
public final String getClientId()
public final String getAuthorizationServerEncodedUrl()
public final CredentialStore getCredentialStore()
null for none.
public AuthorizationCodeFlow.Builder setCredentialStore(CredentialStore credentialStore)
null for none.
Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
public final HttpRequestInitializer getRequestInitializer()
null for none.
public AuthorizationCodeFlow.Builder setRequestInitializer(HttpRequestInitializer requestInitializer)
null for none.
Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
public AuthorizationCodeFlow.Builder setScopes(Iterable<String> scopes)
null for none.
Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
scopes - list of scopes to be joined by a space separator (or a single value containing
multiple space-separated scopes)public AuthorizationCodeFlow.Builder setScopes(String... scopes)
null for none.
Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
scopes - list of scopes to be joined by a space separator (or a single value containing
multiple space-separated scopes)public final String getScopes()
null for none.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||