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 . |
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(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 AppIdentityService getAppIdentityService()
null
to use AppIdentityServiceFactory.getAppIdentityService()
.public AppIdentityCredential.Builder setAppIdentityService(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–2022 Google. All rights reserved.