Class UserCredentials.Builder (1.7.0)

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

Methods

build()

public UserCredentials build()
Returns
TypeDescription
UserCredentials
Overrides

getClientId()

public String getClientId()
Returns
TypeDescription
String

getClientSecret()

public String getClientSecret()
Returns
TypeDescription
String

getHttpTransportFactory()

public HttpTransportFactory getHttpTransportFactory()
Returns
TypeDescription
HttpTransportFactory

getQuotaProjectId()

public String getQuotaProjectId()
Returns
TypeDescription
String

getRefreshToken()

public String getRefreshToken()
Returns
TypeDescription
String

getTokenServerUri()

public URI getTokenServerUri()
Returns
TypeDescription
URI

setAccessToken(AccessToken token)

public UserCredentials.Builder setAccessToken(AccessToken token)
Parameter
NameDescription
tokenAccessToken
Returns
TypeDescription
UserCredentials.Builder
Overrides

setClientId(String clientId)

public UserCredentials.Builder setClientId(String clientId)
Parameter
NameDescription
clientIdString
Returns
TypeDescription
UserCredentials.Builder

setClientSecret(String clientSecret)

public UserCredentials.Builder setClientSecret(String clientSecret)
Parameter
NameDescription
clientSecretString
Returns
TypeDescription
UserCredentials.Builder

setHttpTransportFactory(HttpTransportFactory transportFactory)

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

setQuotaProjectId(String quotaProjectId)

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

setRefreshToken(String refreshToken)

public UserCredentials.Builder setRefreshToken(String refreshToken)
Parameter
NameDescription
refreshTokenString
Returns
TypeDescription
UserCredentials.Builder

setTokenServerUri(URI tokenServerUri)

public UserCredentials.Builder setTokenServerUri(URI tokenServerUri)
Parameter
NameDescription
tokenServerUriURI
Returns
TypeDescription
UserCredentials.Builder