Class JwtCredentials.Builder (1.40.0)

publicstaticclass JwtCredentials.Builder

Inheritance

java.lang.Object > JwtCredentials.Builder

Constructors

Builder()

protectedBuilder()

Methods

build()

publicJwtCredentialsbuild()
Returns
Type Description
JwtCredentials

getJwtClaims()

publicJwtClaimsgetJwtClaims()
Returns
Type Description
JwtClaims

getLifeSpanSeconds()

publicLonggetLifeSpanSeconds()
Returns
Type Description
Long

getPrivateKey()

publicPrivateKeygetPrivateKey()
Returns
Type Description
PrivateKey

getPrivateKeyId()

publicStringgetPrivateKeyId()
Returns
Type Description
String

setJwtClaims(JwtClaims claims)

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

setLifeSpanSeconds(Long lifeSpanSeconds)

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

setPrivateKey(PrivateKey privateKey)

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

setPrivateKeyId(String privateKeyId)

publicJwtCredentials.BuildersetPrivateKeyId(StringprivateKeyId)
Parameter
Name Description
privateKeyId String
Returns
Type Description
JwtCredentials.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.