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