public static class AppIdentityCredential.Builder
Constructors
Builder(Collection<String> scopes)
public Builder(Collection<String> scopes)
Returns an instance of a new builder.
Name | Description |
scopes | Collection<String> OAuth scopes |
Methods
build()
public AppIdentityCredential build()
Returns a new AppIdentityCredential.
Type | Description |
AppIdentityCredential |
getAppIdentityService()
public final AppIdentityService getAppIdentityService()
Returns the App Identity Service that provides the access token or null
to use AppIdentityServiceFactory#getAppIdentityService().
Type | Description |
com.google.appengine.api.appidentity.AppIdentityService |
getScopes()
public final Collection<String> getScopes()
Returns the OAuth scopes (unmodifiable).
Type | Description |
Collection<String> |
setAppIdentityService(AppIdentityService appIdentityService)
public AppIdentityCredential.Builder setAppIdentityService(AppIdentityService appIdentityService)
Sets the App Identity Service that provides the access token or null
to use AppIdentityServiceFactory#getAppIdentityService().
Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
Name | Description |
appIdentityService | com.google.appengine.api.appidentity.AppIdentityService |
Type | Description |
AppIdentityCredential.Builder |