Package com.google.auth.oauth2
Class JwtCredentials.Builder
- java.lang.Object
-
- com.google.auth.oauth2.JwtCredentials.Builder
-
- Enclosing class:
- JwtCredentials
public static class JwtCredentials.Builder extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private com.google.api.client.util.Clockclockprivate JwtClaimsjwtClaimsprivate java.lang.LonglifeSpanSecondsprivate java.security.PrivateKeyprivateKeyprivate java.lang.StringprivateKeyId
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JwtCredentialsbuild()(package private) com.google.api.client.util.ClockgetClock()JwtClaimsgetJwtClaims()java.lang.LonggetLifeSpanSeconds()java.security.PrivateKeygetPrivateKey()java.lang.StringgetPrivateKeyId()(package private) JwtCredentials.BuildersetClock(com.google.api.client.util.Clock clock)JwtCredentials.BuildersetJwtClaims(JwtClaims claims)JwtCredentials.BuildersetLifeSpanSeconds(java.lang.Long lifeSpanSeconds)JwtCredentials.BuildersetPrivateKey(java.security.PrivateKey privateKey)JwtCredentials.BuildersetPrivateKeyId(java.lang.String privateKeyId)
-
-
-
Field Detail
-
privateKey
private java.security.PrivateKey privateKey
-
privateKeyId
private java.lang.String privateKeyId
-
jwtClaims
private JwtClaims jwtClaims
-
clock
private com.google.api.client.util.Clock clock
-
lifeSpanSeconds
private java.lang.Long lifeSpanSeconds
-
-
Method Detail
-
setPrivateKey
@CanIgnoreReturnValue public JwtCredentials.Builder setPrivateKey(java.security.PrivateKey privateKey)
-
getPrivateKey
public java.security.PrivateKey getPrivateKey()
-
setPrivateKeyId
@CanIgnoreReturnValue public JwtCredentials.Builder setPrivateKeyId(java.lang.String privateKeyId)
-
getPrivateKeyId
public java.lang.String getPrivateKeyId()
-
setJwtClaims
@CanIgnoreReturnValue public JwtCredentials.Builder setJwtClaims(JwtClaims claims)
-
getJwtClaims
public JwtClaims getJwtClaims()
-
setLifeSpanSeconds
@CanIgnoreReturnValue public JwtCredentials.Builder setLifeSpanSeconds(java.lang.Long lifeSpanSeconds)
-
getLifeSpanSeconds
public java.lang.Long getLifeSpanSeconds()
-
setClock
@CanIgnoreReturnValue JwtCredentials.Builder setClock(com.google.api.client.util.Clock clock)
-
getClock
com.google.api.client.util.Clock getClock()
-
build
public JwtCredentials build()
-
-