Class UserCredentials.Builder (1.30.1)

public static class UserCredentials.Builder extends GoogleCredentials.Builder

Inheritance

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

Constructors

Builder()

protected Builder()

Builder(UserCredentials credentials)

protected Builder(UserCredentials credentials)
Parameter
Name Description
credentials UserCredentials

Methods

build()

public UserCredentials build()
Returns
Type Description
UserCredentials
Overrides

getClientId()

public String getClientId()
Returns
Type Description
String

getClientSecret()

public String getClientSecret()
Returns
Type Description
String

getHttpTransportFactory()

public HttpTransportFactory getHttpTransportFactory()
Returns
Type Description
HttpTransportFactory

getRefreshToken()

public String getRefreshToken()
Returns
Type Description
String

getTokenServerUri()

public URI getTokenServerUri()
Returns
Type Description
URI

setAccessToken(AccessToken token)

public UserCredentials.Builder setAccessToken(AccessToken token)
Parameter
Name Description
token AccessToken
Returns
Type Description
UserCredentials.Builder
Overrides

setClientId(String clientId)

public UserCredentials.Builder setClientId(String clientId)
Parameter
Name Description
clientId String
Returns
Type Description
UserCredentials.Builder

setClientSecret(String clientSecret)

public UserCredentials.Builder setClientSecret(String clientSecret)
Parameter
Name Description
clientSecret String
Returns
Type Description
UserCredentials.Builder

setExpirationMargin(Duration expirationMargin)

public UserCredentials.Builder setExpirationMargin(Duration expirationMargin)
Parameter
Name Description
expirationMargin Duration
Returns
Type Description
UserCredentials.Builder
Overrides

setHttpTransportFactory(HttpTransportFactory transportFactory)

public UserCredentials.Builder setHttpTransportFactory(HttpTransportFactory transportFactory)
Parameter
Name Description
transportFactory HttpTransportFactory
Returns
Type Description
UserCredentials.Builder

setQuotaProjectId(String quotaProjectId)

public UserCredentials.Builder setQuotaProjectId(String quotaProjectId)
Parameter
Name Description
quotaProjectId String
Returns
Type Description
UserCredentials.Builder
Overrides

setRefreshMargin(Duration refreshMargin)

public UserCredentials.Builder setRefreshMargin(Duration refreshMargin)
Parameter
Name Description
refreshMargin Duration
Returns
Type Description
UserCredentials.Builder
Overrides

setRefreshToken(String refreshToken)

public UserCredentials.Builder setRefreshToken(String refreshToken)
Parameter
Name Description
refreshToken String
Returns
Type Description
UserCredentials.Builder

setTokenServerUri(URI tokenServerUri)

public UserCredentials.Builder setTokenServerUri(URI tokenServerUri)
Parameter
Name Description
tokenServerUri URI
Returns
Type Description
UserCredentials.Builder