クラス GcpComputeAuthentication
java.lang.ObjectSE
org.springframework.vault.authentication.GcpJwtAuthenticationSupport
org.springframework.vault.authentication.GcpComputeAuthentication
- 実装済みのインターフェース一覧:
AuthenticationStepsFactory,ClientAuthentication
public class GcpComputeAuthentication
extends GcpJwtAuthenticationSupport
implements ClientAuthentication, AuthenticationStepsFactory
GCP GCE (Google Compute Engine) GCE のメタデータサービスを使用して署名付き JSON Web トークンを作成する -based ログイン実装。
この認証方法は、Google GCE のメタデータサービスとデフォルトまたは指定されたサービスアカウントを組み合わせて、HTTP クライアント経由で JWT 形式の ID ドキュメントを取得します。認証情報と信頼性はランタイム自体から自動的に取得されるため、設定は不要です。
- 導入:
- 2.1
- 作成者:
- Mark Paluch
- 関連事項:
フィールド概要
フィールドコンストラクター概要
コンストラクターコンストラクター説明GcpComputeAuthentication(GcpComputeAuthenticationOptions options, VaultClient vaultClient) GcpComputeAuthentication(GcpComputeAuthenticationOptions options, VaultClient vaultClient, RestClient googleMetadataClient) GcpComputeAuthenticationOptions、VaultClient、Google APIRestClientを指定して、新しいGcpComputeAuthenticationインスタンスを作成します。GcpComputeAuthentication(GcpComputeAuthenticationOptions options, RestClient client) Vault および Google API の使用のために、GcpComputeAuthenticationOptionsおよびRestClientを指定して新しいGcpComputeAuthenticationインスタンスを作成します。GcpComputeAuthentication(GcpComputeAuthenticationOptions options, RestClient vaultClient, RestClient googleMetadataClient) Vault および Google API の使用のために、GcpComputeAuthenticationOptionsおよびRestClientを指定して新しいGcpComputeAuthenticationインスタンスを作成します。GcpComputeAuthentication(GcpComputeAuthenticationOptions options, RestOperations vaultRestOperations) 使用すべきではありません。GcpComputeAuthentication(GcpComputeAuthenticationOptions options, RestOperations vaultRestOperations, RestOperations googleMetadataRestOperations) 使用すべきではありません。4.1 以降、代わりにGcpComputeAuthentication(GcpComputeAuthenticationOptions, VaultClient, RestClient)を使用してください。方法の概要
修飾子と型メソッド説明static AuthenticationStepsGcpComputeAuthenticationOptionsが与えられた場合、GCE 認証用のAuthenticationStepsを作成します。認証フローを記述するAuthenticationStepsを取得します。login()認証された Vault アクセス用のVaultTokenを取得します。protected StringSEsignJwt()
フィールドの詳細
COMPUTE_METADATA_URL_TEMPLATE
- 関連事項:
コンストラクターの詳細
GcpComputeAuthentication
@DeprecatedSE(since="4.1") public GcpComputeAuthentication(GcpComputeAuthenticationOptions options, RestOperations vaultRestOperations) 使用すべきではありません。4.1 以降、代わりにGcpComputeAuthentication(GcpComputeAuthenticationOptions, VaultClient, RestClient)を使用してください。Vault および Google API の使用のために、GcpComputeAuthenticationOptionsおよびRestOperationsを指定して新しいGcpComputeAuthenticationインスタンスを作成します。- パラメーター:
options- null であってはなりません。vaultRestOperations- null であってはなりません。
GcpComputeAuthentication
@DeprecatedSE(since="4.1") public GcpComputeAuthentication(GcpComputeAuthenticationOptions options, RestOperations vaultRestOperations, RestOperations googleMetadataRestOperations) 使用すべきではありません。4.1 以降、代わりにGcpComputeAuthentication(GcpComputeAuthenticationOptions, VaultClient, RestClient)を使用してください。Vault および Google API の使用のために、GcpComputeAuthenticationOptionsおよびRestOperationsを指定して新しいGcpComputeAuthenticationインスタンスを作成します。- パラメーター:
options- null であってはなりません。vaultRestOperations- null であってはなりません。googleMetadataRestOperations- null であってはなりません。
GcpComputeAuthentication
Vault および Google API の使用のために、GcpComputeAuthenticationOptionsおよびRestClientを指定して新しいGcpComputeAuthenticationインスタンスを作成します。- パラメーター:
options- null であってはなりません。client- null であってはなりません。- 導入:
- 4.0
GcpComputeAuthentication
public GcpComputeAuthentication(GcpComputeAuthenticationOptions options, RestClient vaultClient, RestClient googleMetadataClient) Vault および Google API の使用のために、GcpComputeAuthenticationOptionsおよびRestClientを指定して新しいGcpComputeAuthenticationインスタンスを作成します。- パラメーター:
options- null であってはなりません。vaultClient- null であってはなりません。googleMetadataClient- null であってはなりません。- 導入:
- 4.0
GcpComputeAuthentication
- パラメーター:
options- null であってはなりません。vaultClient- null であってはなりません。- 導入:
- 4.1
GcpComputeAuthentication
public GcpComputeAuthentication(GcpComputeAuthenticationOptions options, VaultClient vaultClient, RestClient googleMetadataClient) GcpComputeAuthenticationOptions、VaultClient、Google APIRestClientを指定して、新しいGcpComputeAuthenticationインスタンスを作成します。- パラメーター:
options- null であってはなりません。vaultClient- null であってはなりません。googleMetadataClient- null であってはなりません。- 導入:
- 4.1
方法の詳細
createAuthenticationSteps
public static AuthenticationSteps createAuthenticationSteps(GcpComputeAuthenticationOptions options) GcpComputeAuthenticationOptionsが与えられた場合、GCE 認証用のAuthenticationStepsを作成します。- パラメーター:
options- null であってはなりません。- 戻り値:
- カビーホール認証用の
AuthenticationSteps。
login
インターフェースからコピーされた説明:ClientAuthentication認証された Vault アクセス用のVaultTokenを取得します。このメソッドは、Vault への認証リクエストを実行するか、キャッシュされたトークンまたは事前構成されたトークンを返す場合があります。
- 次で指定:
- インターフェース
ClientAuthentication内のlogin - 戻り値:
- 後続の認証リクエストの Vault トークン
- 例外:
VaultLoginException- 認証が失敗した場合。VaultException- 関連事項:
getAuthenticationSteps
インターフェースからコピーされた説明:AuthenticationStepsFactory認証フローを記述するAuthenticationStepsを取得します。- 次で指定:
- インターフェース
AuthenticationStepsFactory内のgetAuthenticationSteps - 戻り値:
- 認証フローを記述する
AuthenticationSteps。
signJwt
GcpComputeAuthentication(GcpComputeAuthenticationOptions, VaultClient, RestClient)を使用してください。