public static class AppIdentityCredential.Builder extends Object
AppIdentityCredential
.
Implementation is not thread-safe.
Constructor and Description |
---|
Builder(Collection<String> scopes)
Returns an instance of a new builder.
|
Modifier and Type | Method and Description |
---|---|
AppIdentityCredential |
build()
Returns a new
AppIdentityCredential . |
com.google.appengine.api.appidentity.AppIdentityService |
getAppIdentityService()
Returns the App Identity Service that provides the access token or
null to use
AppIdentityServiceFactory.getAppIdentityService() . |
Collection<String> |
getScopes()
Returns the OAuth scopes (unmodifiable).
|
AppIdentityCredential.Builder |
setAppIdentityService(com.google.appengine.api.appidentity.AppIdentityService appIdentityService)
Sets the App Identity Service that provides the access token or
null to use
AppIdentityServiceFactory.getAppIdentityService() . |
public Builder(Collection<String> scopes)
scopes
- OAuth scopespublic final com.google.appengine.api.appidentity.AppIdentityService getAppIdentityService()
null
to use
AppIdentityServiceFactory.getAppIdentityService()
.public AppIdentityCredential.Builder setAppIdentityService(com.google.appengine.api.appidentity.AppIdentityService appIdentityService)
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.
public AppIdentityCredential build()
AppIdentityCredential
.public final Collection<String> getScopes()
Copyright © 2010–2019 Google. All rights reserved.