Class JwtCredentials.Builder (1.4.0)

publicstaticclass JwtCredentials.Builder

Inheritance

java.lang.Object > JwtCredentials.Builder

Constructors

Builder()

protectedBuilder()

Methods

build()

publicJwtCredentialsbuild()
Returns
Type Description

getJwtClaims()

publicJwtClaimsgetJwtClaims()
Returns
Type Description

getLifeSpanSeconds()

publicLonggetLifeSpanSeconds()
Returns
Type Description

getPrivateKey()

publicPrivateKeygetPrivateKey()
Returns
Type Description

getPrivateKeyId()

publicStringgetPrivateKeyId()
Returns
Type Description

setJwtClaims(JwtClaims claims)

publicJwtCredentials.BuildersetJwtClaims(JwtClaimsclaims)
Parameter
Name Description
claims JwtClaims
Returns
Type Description

setLifeSpanSeconds(Long lifeSpanSeconds)

publicJwtCredentials.BuildersetLifeSpanSeconds(LonglifeSpanSeconds)
Parameter
Name Description
lifeSpanSeconds Long
Returns
Type Description

setPrivateKey(PrivateKey privateKey)

publicJwtCredentials.BuildersetPrivateKey(PrivateKeyprivateKey)
Parameter
Name Description
privateKey PrivateKey
Returns
Type Description

setPrivateKeyId(String privateKeyId)

publicJwtCredentials.BuildersetPrivateKeyId(StringprivateKeyId)
Parameter
Name Description
privateKeyId String
Returns
Type Description

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.