Class ServiceAccountJwtAccessCredentials.Builder (1.31.0)

publicstaticclass ServiceAccountJwtAccessCredentials.Builder

Inheritance

java.lang.Object > ServiceAccountJwtAccessCredentials.Builder

Constructors

Builder()

protectedBuilder()

Builder(ServiceAccountJwtAccessCredentials credentials)

protectedBuilder(ServiceAccountJwtAccessCredentialscredentials)
Parameter
Name Description
credentials ServiceAccountJwtAccessCredentials

Methods

build()

publicServiceAccountJwtAccessCredentialsbuild()
Returns
Type Description
ServiceAccountJwtAccessCredentials

getClientEmail()

publicStringgetClientEmail()
Returns
Type Description
String

getClientId()

publicStringgetClientId()
Returns
Type Description
String

getDefaultAudience()

publicURIgetDefaultAudience()
Returns
Type Description
URI

getPrivateKey()

publicPrivateKeygetPrivateKey()
Returns
Type Description
PrivateKey

getPrivateKeyId()

publicStringgetPrivateKeyId()
Returns
Type Description
String

getQuotaProjectId()

publicStringgetQuotaProjectId()
Returns
Type Description
String

setClientEmail(String clientEmail)

publicServiceAccountJwtAccessCredentials.BuildersetClientEmail(StringclientEmail)
Parameter
Name Description
clientEmail String
Returns
Type Description
ServiceAccountJwtAccessCredentials.Builder

setClientId(String clientId)

publicServiceAccountJwtAccessCredentials.BuildersetClientId(StringclientId)
Parameter
Name Description
clientId String
Returns
Type Description
ServiceAccountJwtAccessCredentials.Builder

setDefaultAudience(URI defaultAudience)

publicServiceAccountJwtAccessCredentials.BuildersetDefaultAudience(URIdefaultAudience)
Parameter
Name Description
defaultAudience URI
Returns
Type Description
ServiceAccountJwtAccessCredentials.Builder

setPrivateKey(PrivateKey privateKey)

publicServiceAccountJwtAccessCredentials.BuildersetPrivateKey(PrivateKeyprivateKey)
Parameter
Name Description
privateKey PrivateKey
Returns
Type Description
ServiceAccountJwtAccessCredentials.Builder

setPrivateKeyId(String privateKeyId)

publicServiceAccountJwtAccessCredentials.BuildersetPrivateKeyId(StringprivateKeyId)
Parameter
Name Description
privateKeyId String
Returns
Type Description
ServiceAccountJwtAccessCredentials.Builder

setQuotaProjectId(String quotaProjectId)

publicServiceAccountJwtAccessCredentials.BuildersetQuotaProjectId(StringquotaProjectId)
Parameter
Name Description
quotaProjectId String
Returns
Type Description
ServiceAccountJwtAccessCredentials.Builder

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.