public static class GcpIamAuthenticationOptions.GcpIamAuthenticationOptionsBuilder extends Object
GcpIamAuthenticationOptions
.Modifier and Type | Method and Description |
---|---|
GcpIamAuthenticationOptions |
build()
Build a new
GcpIamAuthenticationOptions instance. |
GcpIamAuthenticationOptions.GcpIamAuthenticationOptionsBuilder |
clock(Clock clock)
Configure the
Clock used to calculate epoch seconds until the JWT
expiration. |
GcpIamAuthenticationOptions.GcpIamAuthenticationOptionsBuilder |
credential(com.google.api.client.googleapis.auth.oauth2.GoogleCredential credential)
Configure static Google credentials, required to create a signed JWT.
|
GcpIamAuthenticationOptions.GcpIamAuthenticationOptionsBuilder |
credentialSupplier(GcpCredentialSupplier credentialSupplier)
Configure an
AWSCredentialsProvider , required to create a signed JWT. |
GcpIamAuthenticationOptions.GcpIamAuthenticationOptionsBuilder |
jwtValidity(Duration jwtValidity)
Configure the
Duration for the JWT expiration. |
GcpIamAuthenticationOptions.GcpIamAuthenticationOptionsBuilder |
path(String path)
Configure the mount path, defaults to aws.
|
GcpIamAuthenticationOptions.GcpIamAuthenticationOptionsBuilder |
role(String role)
Configure the name of the role against which the login is being attempted.
|
public GcpIamAuthenticationOptions.GcpIamAuthenticationOptionsBuilder path(String path)
path
- must not be empty or null.this
GcpIamAuthenticationOptions.GcpIamAuthenticationOptionsBuilder
.public GcpIamAuthenticationOptions.GcpIamAuthenticationOptionsBuilder credential(com.google.api.client.googleapis.auth.oauth2.GoogleCredential credential)
credentials provider
.credential
- must not be null.this
GcpIamAuthenticationOptions.GcpIamAuthenticationOptionsBuilder
.credentialSupplier(GcpCredentialSupplier)
public GcpIamAuthenticationOptions.GcpIamAuthenticationOptionsBuilder credentialSupplier(GcpCredentialSupplier credentialSupplier)
AWSCredentialsProvider
, required to create a signed JWT.
Alternatively, configure static credentials
.credentialSupplier
- must not be null.this
GcpIamAuthenticationOptions.GcpIamAuthenticationOptionsBuilder
.credential(GoogleCredential)
public GcpIamAuthenticationOptions.GcpIamAuthenticationOptionsBuilder role(String role)
role
- must not be empty or null.this
GcpIamAuthenticationOptions.GcpIamAuthenticationOptionsBuilder
.public GcpIamAuthenticationOptions.GcpIamAuthenticationOptionsBuilder jwtValidity(Duration jwtValidity)
Duration
for the JWT expiration. This defaults to 15
minutes and cannot be more than a hour.jwtValidity
- must not be null.this
GcpIamAuthenticationOptions.GcpIamAuthenticationOptionsBuilder
.public GcpIamAuthenticationOptions.GcpIamAuthenticationOptionsBuilder clock(Clock clock)
Clock
used to calculate epoch seconds until the JWT
expiration.clock
- must not be null.this
GcpIamAuthenticationOptions.GcpIamAuthenticationOptionsBuilder
.public GcpIamAuthenticationOptions build()
GcpIamAuthenticationOptions
instance.GcpIamAuthenticationOptions
.Copyright © 2016–2018 Pivotal Software, Inc.. All rights reserved.