Class AppIdentityCredential.Builder (2.6.0)

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
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