Package com.google.auth.oauth2
Class GdchCredentials.Builder
- java.lang.Object
-
- com.google.auth.oauth2.OAuth2Credentials.Builder
-
- com.google.auth.oauth2.GoogleCredentials.Builder
-
- com.google.auth.oauth2.GdchCredentials.Builder
-
- Enclosing class:
- GdchCredentials
public static class GdchCredentials.Builder extends GoogleCredentials.Builder
-
-
Field Summary
-
Fields inherited from class com.google.auth.oauth2.GoogleCredentials.Builder
quotaProjectId
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder()
protected
Builder(GdchCredentials credentials)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GdchCredentials
build()
String
getCaCertPath()
HttpTransportFactory
getHttpTransportFactory()
int
getLifetime()
PrivateKey
getPrivateKey()
String
getPrivateKeyId()
String
getProjectId()
String
getServiceIdentityName()
URI
getTokenServerUri()
GdchCredentials.Builder
setCaCertPath(String caCertPath)
GdchCredentials.Builder
setGdchAudience(URI apiAudience)
GdchCredentials.Builder
setHttpTransportFactory(HttpTransportFactory transportFactory)
GdchCredentials.Builder
setPrivateKey(PrivateKey privateKey)
GdchCredentials.Builder
setPrivateKeyId(String privateKeyId)
GdchCredentials.Builder
setProjectId(String projectId)
GdchCredentials.Builder
setServiceIdentityName(String name)
GdchCredentials.Builder
setTokenServerUri(URI tokenServerUri)
-
Methods inherited from class com.google.auth.oauth2.GoogleCredentials.Builder
getQuotaProjectId, setAccessToken, setQuotaProjectId
-
Methods inherited from class com.google.auth.oauth2.OAuth2Credentials.Builder
getAccessToken, getExpirationMargin, getRefreshMargin, setExpirationMargin, setRefreshMargin
-
-
-
-
Constructor Detail
-
Builder
protected Builder()
-
Builder
protected Builder(GdchCredentials credentials)
-
-
Method Detail
-
setProjectId
public GdchCredentials.Builder setProjectId(String projectId)
-
setPrivateKeyId
public GdchCredentials.Builder setPrivateKeyId(String privateKeyId)
-
setPrivateKey
public GdchCredentials.Builder setPrivateKey(PrivateKey privateKey)
-
setServiceIdentityName
public GdchCredentials.Builder setServiceIdentityName(String name)
-
setTokenServerUri
public GdchCredentials.Builder setTokenServerUri(URI tokenServerUri)
-
setHttpTransportFactory
public GdchCredentials.Builder setHttpTransportFactory(HttpTransportFactory transportFactory)
-
setCaCertPath
public GdchCredentials.Builder setCaCertPath(String caCertPath)
-
setGdchAudience
public GdchCredentials.Builder setGdchAudience(URI apiAudience)
-
getProjectId
public String getProjectId()
-
getPrivateKeyId
public String getPrivateKeyId()
-
getPrivateKey
public PrivateKey getPrivateKey()
-
getServiceIdentityName
public String getServiceIdentityName()
-
getTokenServerUri
public URI getTokenServerUri()
-
getHttpTransportFactory
public HttpTransportFactory getHttpTransportFactory()
-
getCaCertPath
public String getCaCertPath()
-
getLifetime
public int getLifetime()
-
build
public GdchCredentials build()
- Overrides:
build
in classGoogleCredentials.Builder
-
-