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