public static class UserCredentials.Builder extends GoogleCredentials.Builder
quotaProjectId
Modifier | Constructor and Description |
---|---|
protected |
Builder() |
protected |
Builder(UserCredentials credentials) |
Modifier and Type | Method and Description |
---|---|
UserCredentials |
build() |
String |
getClientId() |
String |
getClientSecret() |
HttpTransportFactory |
getHttpTransportFactory() |
String |
getRefreshToken() |
URI |
getTokenServerUri() |
UserCredentials.Builder |
setAccessToken(AccessToken token) |
UserCredentials.Builder |
setClientId(String clientId) |
UserCredentials.Builder |
setClientSecret(String clientSecret) |
UserCredentials.Builder |
setExpirationMargin(Duration expirationMargin) |
UserCredentials.Builder |
setHttpTransportFactory(HttpTransportFactory transportFactory) |
UserCredentials.Builder |
setQuotaProjectId(String quotaProjectId) |
UserCredentials.Builder |
setRefreshMargin(Duration refreshMargin) |
UserCredentials.Builder |
setRefreshToken(String refreshToken) |
UserCredentials.Builder |
setTokenServerUri(URI tokenServerUri) |
getQuotaProjectId
getAccessToken, getExpirationMargin, getRefreshMargin
protected Builder()
protected Builder(UserCredentials credentials)
public UserCredentials.Builder setClientId(String clientId)
public UserCredentials.Builder setClientSecret(String clientSecret)
public UserCredentials.Builder setRefreshToken(String refreshToken)
public UserCredentials.Builder setTokenServerUri(URI tokenServerUri)
public UserCredentials.Builder setHttpTransportFactory(HttpTransportFactory transportFactory)
public UserCredentials.Builder setAccessToken(AccessToken token)
setAccessToken
in class GoogleCredentials.Builder
public UserCredentials.Builder setExpirationMargin(Duration expirationMargin)
setExpirationMargin
in class OAuth2Credentials.Builder
public UserCredentials.Builder setRefreshMargin(Duration refreshMargin)
setRefreshMargin
in class OAuth2Credentials.Builder
public UserCredentials.Builder setQuotaProjectId(String quotaProjectId)
setQuotaProjectId
in class GoogleCredentials.Builder
public String getClientId()
public String getClientSecret()
public String getRefreshToken()
public URI getTokenServerUri()
public HttpTransportFactory getHttpTransportFactory()
public UserCredentials build()
build
in class GoogleCredentials.Builder
Copyright © 2023 Google. All rights reserved.