public static class AppIdentityCredential.BuilderConstructors
Builder(Collection<String> scopes)
public Builder(Collection<String> scopes)Returns an instance of a new builder.
| Parameter | |
|---|---|
| Name | Description |
scopes |
Collection<String>OAuth scopes |
Methods
build()
public AppIdentityCredential build()Returns a new AppIdentityCredential.
| Returns | |
|---|---|
| Type | Description |
AppIdentityCredential |
|
getAppIdentityService()
public final AppIdentityService getAppIdentityService()Returns the App Identity Service that provides the access token or null to use AppIdentityServiceFactory#getAppIdentityService().
| Returns | |
|---|---|
| Type | Description |
com.google.appengine.api.appidentity.AppIdentityService |
|
getScopes()
public final Collection<String> getScopes()Returns the OAuth scopes (unmodifiable).
| Returns | |
|---|---|
| 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.
| Parameter | |
|---|---|
| Name | Description |
appIdentityService |
com.google.appengine.api.appidentity.AppIdentityService |
| Returns | |
|---|---|
| Type | Description |
AppIdentityCredential.Builder |
|