Class ImpersonatedCredentials.Builder (1.6.0)

public static class ImpersonatedCredentials.Builder extends GoogleCredentials.Builder

Inheritance

java.lang.Object > OAuth2Credentials.Builder > GoogleCredentials.Builder > ImpersonatedCredentials.Builder

Constructors

Builder()

protected Builder()

Builder(GoogleCredentials sourceCredentials, String targetPrincipal)

protected Builder(GoogleCredentials sourceCredentials, String targetPrincipal)
Parameters
NameDescription
sourceCredentialsGoogleCredentials
targetPrincipalString

Methods

build()

public ImpersonatedCredentials build()
Returns
TypeDescription
ImpersonatedCredentials
Overrides

getDelegates()

public List<String> getDelegates()
Returns
TypeDescription
List<String>

getHttpTransportFactory()

public HttpTransportFactory getHttpTransportFactory()
Returns
TypeDescription
HttpTransportFactory

getLifetime()

public int getLifetime()
Returns
TypeDescription
int

getScopes()

public List<String> getScopes()
Returns
TypeDescription
List<String>

getSourceCredentials()

public GoogleCredentials getSourceCredentials()
Returns
TypeDescription
GoogleCredentials

getTargetPrincipal()

public String getTargetPrincipal()
Returns
TypeDescription
String

setDelegates(List<String> delegates)

public ImpersonatedCredentials.Builder setDelegates(List<String> delegates)
Parameter
NameDescription
delegatesList<String>
Returns
TypeDescription
ImpersonatedCredentials.Builder

setHttpTransportFactory(HttpTransportFactory transportFactory)

public ImpersonatedCredentials.Builder setHttpTransportFactory(HttpTransportFactory transportFactory)
Parameter
NameDescription
transportFactoryHttpTransportFactory
Returns
TypeDescription
ImpersonatedCredentials.Builder

setLifetime(int lifetime)

public ImpersonatedCredentials.Builder setLifetime(int lifetime)
Parameter
NameDescription
lifetimeint
Returns
TypeDescription
ImpersonatedCredentials.Builder

setQuotaProjectId(String quotaProjectId)

public ImpersonatedCredentials.Builder setQuotaProjectId(String quotaProjectId)
Parameter
NameDescription
quotaProjectIdString
Returns
TypeDescription
ImpersonatedCredentials.Builder

setScopes(List<String> scopes)

public ImpersonatedCredentials.Builder setScopes(List<String> scopes)
Parameter
NameDescription
scopesList<String>
Returns
TypeDescription
ImpersonatedCredentials.Builder

setSourceCredentials(GoogleCredentials sourceCredentials)

public ImpersonatedCredentials.Builder setSourceCredentials(GoogleCredentials sourceCredentials)
Parameter
NameDescription
sourceCredentialsGoogleCredentials
Returns
TypeDescription
ImpersonatedCredentials.Builder

setTargetPrincipal(String targetPrincipal)

public ImpersonatedCredentials.Builder setTargetPrincipal(String targetPrincipal)
Parameter
NameDescription
targetPrincipalString
Returns
TypeDescription
ImpersonatedCredentials.Builder