クラス GcpIamAuthenticationOptions.GcpIamAuthenticationOptionsBuilder
java.lang.ObjectSE
org.springframework.vault.authentication.GcpIamAuthenticationOptions.GcpIamAuthenticationOptionsBuilder
- 含まれているクラス:
- GcpIamAuthenticationOptions
GcpIamAuthenticationOptions
のビルダー。メソッドのサマリー
修飾子と型メソッド説明build()
新しいGcpIamAuthenticationOptions
インスタンスを作成します。JWT の有効期限が切れるまでのエポック秒を計算するために使用されるClock
SE を構成します。credential
(com.google.api.client.googleapis.auth.oauth2.GoogleCredential credential) 署名付き JWT の作成に必要な静的 Google 資格情報を構成します。credentialSupplier
(GcpCredentialSupplier credentialSupplier) 署名付き JWT の作成に必要なGcpCredentialSupplier
を構成します。jwtValidity
(DurationSE jwtValidity) JWT の有効期限用にDuration
SE を構成します。マウントパスを設定します。デフォルトは aws です。GCP IAM API 呼び出しで使用する明示的な GCP プロジェクト ID を構成します。ログインが試行されているロールの名前を構成します。serviceAccountId
(StringSE serviceAccountId) GCP IAM 呼び出しで使用する明示的なサービスアカウント ID を構成します。
メソッドの詳細
path
マウントパスを設定します。デフォルトは aws です。- パラメーター:
path
- 空または null であってはなりません。- 戻り値:
this
GcpIamAuthenticationOptions.GcpIamAuthenticationOptionsBuilder
。
credential
public GcpIamAuthenticationOptions.GcpIamAuthenticationOptionsBuilder credential(com.google.api.client.googleapis.auth.oauth2.GoogleCredential credential) 署名付き JWT の作成に必要な静的 Google 資格情報を構成します。静的資格情報を使用するか、credentials provider
を指定します。- パラメーター:
credential
- null であってはなりません。- 戻り値:
this
GcpIamAuthenticationOptions.GcpIamAuthenticationOptionsBuilder
。- 関連事項:
credentialSupplier
public GcpIamAuthenticationOptions.GcpIamAuthenticationOptionsBuilder credentialSupplier(GcpCredentialSupplier credentialSupplier) 署名付き JWT の作成に必要なGcpCredentialSupplier
を構成します。または、静的credentials
を構成します。- パラメーター:
credentialSupplier
- null であってはなりません。- 戻り値:
this
GcpIamAuthenticationOptions.GcpIamAuthenticationOptionsBuilder
。- 関連事項:
serviceAccountId
public GcpIamAuthenticationOptions.GcpIamAuthenticationOptionsBuilder serviceAccountId(StringSE serviceAccountId) GCP IAM 呼び出しで使用する明示的なサービスアカウント ID を構成します。何も構成されていない場合は、GoogleCredential.getServiceAccountId()
の使用にフォールバックします。- パラメーター:
serviceAccountId
- 使用するサービスアカウント ID (メール)- 戻り値:
this
GcpIamAuthenticationOptions.GcpIamAuthenticationOptionsBuilder
。- 導入:
- 2.1
projectId
GCP IAM API 呼び出しで使用する明示的な GCP プロジェクト ID を構成します。何も構成されていない場合は、GoogleCredential.getServiceAccountProjectId()
を使用してフォールバックします。- パラメーター:
projectId
- GCP IAM API 呼び出しで使用する GCP プロジェクト ID- 戻り値:
this
GcpIamAuthenticationOptions.GcpIamAuthenticationOptionsBuilder
。- 導入:
- 2.1
role
ログインが試行されているロールの名前を構成します。- パラメーター:
role
- 空または null であってはなりません。- 戻り値:
this
GcpIamAuthenticationOptions.GcpIamAuthenticationOptionsBuilder
。
jwtValidity
public GcpIamAuthenticationOptions.GcpIamAuthenticationOptionsBuilder jwtValidity(DurationSE jwtValidity) JWT の有効期限用にDuration
SE を構成します。これはデフォルトで 15 分に設定されており、1 時間を超えることはできません。- パラメーター:
jwtValidity
- null であってはなりません。- 戻り値:
this
GcpIamAuthenticationOptions.GcpIamAuthenticationOptionsBuilder
。
clock
JWT の有効期限が切れるまでのエポック秒を計算するために使用されるClock
SE を構成します。- パラメーター:
clock
- null であってはなりません。- 戻り値:
this
GcpIamAuthenticationOptions.GcpIamAuthenticationOptionsBuilder
。
build
新しいGcpIamAuthenticationOptions
インスタンスを作成します。- 戻り値:
- 新しい
GcpIamAuthenticationOptions
。