クラス GcpIamCredentialsAuthentication
java.lang.ObjectSE
org.springframework.vault.authentication.GcpJwtAuthenticationSupport
org.springframework.vault.authentication.GcpIamCredentialsAuthentication
- 実装済みのインターフェース一覧:
ClientAuthentication
public class GcpIamCredentialsAuthentication
extends GcpJwtAuthenticationSupport
implements ClientAuthentication
GCP IAM サービスアカウントを使用した Google Cloud IAM 認証情報ログイン実装。IAM 認証情報
projects.serviceAccounts.signJwt メソッドを使用して JSON Web トークン経由でその信頼性を正当化します。この認証方法では、Google の IAM Credentials API を使用して、特定の Credential の署名付きトークンを取得します。サービスアカウントの詳細は、JSON ファイルまたはランタイム環境 (GAE、GCE) から取得できる GoogleCredentials から取得されます。 GcpIamCredentialsAuthentication は、同期 API を使用する Google Java API を使用します。- 導入:
- 2.3.2
- 作成者:
- Andreas Gebauer, Mark Paluch
- 関連事項:
GcpIamCredentialsAuthenticationOptionsHttpTransportGoogleCredentialsGoogleCredentials.getApplicationDefault()RestOperations- 認証バックエンド: gcp (IAM)
- GCP: projects.serviceAccounts.signJwt
コンストラクター概要
コンストラクターコンストラクター説明GcpIamCredentialsAuthentication(GcpIamCredentialsAuthenticationOptions options, RestOperations restOperations) GcpIamCredentialsAuthenticationOptionsおよびRestOperationsを指定してGcpIamCredentialsAuthenticationの新しいインスタンスを作成します。GcpIamCredentialsAuthentication(GcpIamCredentialsAuthenticationOptions options, RestOperations restOperations, com.google.api.gax.rpc.TransportChannelProvider transportChannelProvider) GcpIamCredentialsAuthenticationOptions、RestOperations、TransportChannelProviderを指定して、GcpIamCredentialsAuthenticationの新しいインスタンスを作成します。方法の概要
コンストラクターの詳細
GcpIamCredentialsAuthentication
public GcpIamCredentialsAuthentication(GcpIamCredentialsAuthenticationOptions options, RestOperations restOperations) GcpIamCredentialsAuthenticationOptionsとRestOperationsを指定して、GcpIamCredentialsAuthenticationの新しいインスタンスを作成します。このコンストラクターは、Google API の使用のためにInstantiatingGrpcChannelProviderを初期化します。- パラメーター:
options- null であってはなりません。restOperations- Vault ログイン用の HTTP クライアントは null であってはなりません。
GcpIamCredentialsAuthentication
public GcpIamCredentialsAuthentication(GcpIamCredentialsAuthenticationOptions options, RestOperations restOperations, com.google.api.gax.rpc.TransportChannelProvider transportChannelProvider) GcpIamCredentialsAuthenticationOptions、RestOperations、TransportChannelProviderを指定して、GcpIamCredentialsAuthenticationの新しいインスタンスを作成します。- パラメーター:
options- null であってはなりません。restOperations- Vault ログイン用の HTTP クライアントは null であってはなりません。transportChannelProvider- トランスポートチャネル Google API の使用のためのプロバイダー。null にすることはできません。
方法の詳細
login
インターフェースからコピーされた説明:ClientAuthenticationVaultTokenを返します。このメソッドは、必要に応じて Vault にログインしてtokenを取得できます。- 次で指定:
- インターフェース
ClientAuthentication内のlogin - 戻り値:
VaultToken。- 例外:
VaultException
signJwt