Class AppIdentityCredential.Builder (1.35.1)

public static class AppIdentityCredential.Builder

Builder for AppIdentityCredential.

Implementation is not thread-safe.

Inheritance

java.lang.Object > AppIdentityCredential.Builder

Constructors

Builder(Collection<String> scopes)

public Builder(Collection<String> scopes)

Returns an instance of a new builder.

Parameter
NameDescription
scopesCollection<String>

OAuth scopes

Methods

build()

public AppIdentityCredential build()

Returns a new AppIdentityCredential.

Returns
TypeDescription
AppIdentityCredential

getAppIdentityService()

public final AppIdentityService getAppIdentityService()

Returns the App Identity Service that provides the access token or null to use AppIdentityServiceFactory#getAppIdentityService().

Returns
TypeDescription
com.google.appengine.api.appidentity.AppIdentityService

getScopes()

public final Collection<String> getScopes()

Returns the OAuth scopes (unmodifiable).

Returns
TypeDescription
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
NameDescription
appIdentityServicecom.google.appengine.api.appidentity.AppIdentityService
Returns
TypeDescription
AppIdentityCredential.Builder