Class GdchCredentials.Builder (1.54.0)

public static class GdchCredentials.Builder extends GoogleCredentials.Builder

Inheritance

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

Constructors

Builder()

protected Builder()

Builder(GdchCredentials credentials)

protected Builder(GdchCredentials credentials)
Parameter
Name Description
credentials GdchCredentials

Methods

build()

public GdchCredentials build()
Returns
Type Description
GdchCredentials
Overrides

getCaCertPath()

public @Nullable String getCaCertPath()
Returns
Type Description
@org.jspecify.annotations.Nullable java.lang.String

getGdchAudience()

public @Nullable String getGdchAudience()
Returns
Type Description
@org.jspecify.annotations.Nullable java.lang.String

getHttpTransportFactory()

public @Nullable HttpTransportFactory getHttpTransportFactory()
Returns
Type Description
@org.jspecify.annotations.Nullable com.google.auth.http.HttpTransportFactory

getLifetime()

public int getLifetime()
Returns
Type Description
int

getPrivateKey()

public @Nullable PrivateKey getPrivateKey()
Returns
Type Description
@org.jspecify.annotations.Nullable java.security.PrivateKey

getPrivateKeyId()

public @Nullable String getPrivateKeyId()
Returns
Type Description
@org.jspecify.annotations.Nullable java.lang.String

getProjectId()

public @Nullable String getProjectId()
Returns
Type Description
@org.jspecify.annotations.Nullable java.lang.String

getServiceIdentityName()

public @Nullable String getServiceIdentityName()
Returns
Type Description
@org.jspecify.annotations.Nullable java.lang.String

getTokenServerUri()

public @Nullable URI getTokenServerUri()
Returns
Type Description
@org.jspecify.annotations.Nullable java.net.URI

setCaCertPath(@Nullable String caCertPath)

public GdchCredentials.Builder setCaCertPath(@Nullable String caCertPath)
Parameter
Name Description
caCertPath @org.jspecify.annotations.Nullable java.lang.String
Returns
Type Description
GdchCredentials.Builder

setGdchAudience(String apiAudience)

public GdchCredentials.Builder setGdchAudience(String apiAudience)

Sets the intended audience for GDCH credentials.

Parameter
Name Description
apiAudience String

The audience string. Cannot be null or empty.

Returns
Type Description
GdchCredentials.Builder

this builder.

setHttpTransportFactory(HttpTransportFactory transportFactory)

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

setPrivateKey(PrivateKey privateKey)

public GdchCredentials.Builder setPrivateKey(PrivateKey privateKey)
Parameter
Name Description
privateKey PrivateKey
Returns
Type Description
GdchCredentials.Builder

setPrivateKeyId(String privateKeyId)

public GdchCredentials.Builder setPrivateKeyId(String privateKeyId)
Parameter
Name Description
privateKeyId String
Returns
Type Description
GdchCredentials.Builder

setProjectId(String projectId)

public GdchCredentials.Builder setProjectId(String projectId)
Parameter
Name Description
projectId String
Returns
Type Description
GdchCredentials.Builder

setQuotaProjectId(@Nullable String quotaProjectId)

public GdchCredentials.Builder setQuotaProjectId(@Nullable String quotaProjectId)
Parameter
Name Description
quotaProjectId @org.jspecify.annotations.Nullable java.lang.String
Returns
Type Description
GdchCredentials.Builder
Overrides

setServiceIdentityName(String name)

public GdchCredentials.Builder setServiceIdentityName(String name)
Parameter
Name Description
name String
Returns
Type Description
GdchCredentials.Builder

setTokenServerUri(URI tokenServerUri)

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