Package | Description |
---|---|
com.google.api.client.auth.oauth2 |
Implementation of the OAuth 2.0 Authorization
Framework.
|
Modifier and Type | Method and Description |
---|---|
AuthorizationCodeFlow.Builder |
AuthorizationCodeFlow.Builder.addRefreshListener(CredentialRefreshListener refreshListener)
Adds a listener for refresh token results.
|
AuthorizationCodeFlow.Builder |
AuthorizationCodeFlow.Builder.enablePKCE()
Enables Proof Key for Code Exchange (PKCE) for this Athorization Code Flow.
|
AuthorizationCodeFlow.Builder |
AuthorizationCodeFlow.Builder.setAuthorizationServerEncodedUrl(String authorizationServerEncodedUrl)
Sets the authorization server encoded URL.
|
AuthorizationCodeFlow.Builder |
AuthorizationCodeFlow.Builder.setClientAuthentication(HttpExecuteInterceptor clientAuthentication)
Sets the client authentication or
null for none (see TokenRequest.setClientAuthentication(HttpExecuteInterceptor) ). |
AuthorizationCodeFlow.Builder |
AuthorizationCodeFlow.Builder.setClientId(String clientId)
Sets the client identifier.
|
AuthorizationCodeFlow.Builder |
AuthorizationCodeFlow.Builder.setClock(Clock clock)
Sets the clock to pass to the Credential.
|
AuthorizationCodeFlow.Builder |
AuthorizationCodeFlow.Builder.setCredentialCreatedListener(AuthorizationCodeFlow.CredentialCreatedListener credentialCreatedListener)
Sets the credential created listener or
null for none. |
AuthorizationCodeFlow.Builder |
AuthorizationCodeFlow.Builder.setCredentialDataStore(DataStore<StoredCredential> credentialDataStore)
|
AuthorizationCodeFlow.Builder |
AuthorizationCodeFlow.Builder.setCredentialStore(CredentialStore credentialStore)
Deprecated.
(to be removed in the future) Use
setDataStoreFactory(DataStoreFactory)
or setCredentialDataStore(DataStore) instead. |
AuthorizationCodeFlow.Builder |
AuthorizationCodeFlow.Builder.setDataStoreFactory(DataStoreFactory dataStoreFactory)
|
AuthorizationCodeFlow.Builder |
AuthorizationCodeFlow.Builder.setJsonFactory(JsonFactory jsonFactory)
Sets the JSON factory.
|
AuthorizationCodeFlow.Builder |
AuthorizationCodeFlow.Builder.setMethod(Credential.AccessMethod method)
Sets the method of presenting the access token to the resource server (for example
BearerToken.authorizationHeaderAccessMethod() ). |
AuthorizationCodeFlow.Builder |
AuthorizationCodeFlow.Builder.setRefreshListeners(Collection<CredentialRefreshListener> refreshListeners)
Sets the listeners for refresh token results.
|
AuthorizationCodeFlow.Builder |
AuthorizationCodeFlow.Builder.setRequestInitializer(HttpRequestInitializer requestInitializer)
Sets the HTTP request initializer or
null for none. |
AuthorizationCodeFlow.Builder |
AuthorizationCodeFlow.Builder.setScopes(Collection<String> scopes)
Sets the collection of scopes.
|
AuthorizationCodeFlow.Builder |
AuthorizationCodeFlow.Builder.setTokenServerUrl(GenericUrl tokenServerUrl)
Sets the token server URL.
|
AuthorizationCodeFlow.Builder |
AuthorizationCodeFlow.Builder.setTransport(HttpTransport transport)
Sets the HTTP transport.
|
Constructor and Description |
---|
AuthorizationCodeFlow(AuthorizationCodeFlow.Builder builder) |
Copyright © 2011–2022 Google. All rights reserved.