クラス GcpIamAuthentication

java.lang.ObjectSE
org.springframework.vault.authentication.GcpJwtAuthenticationSupport
org.springframework.vault.authentication.GcpIamAuthentication
実装済みのインターフェース一覧:
ClientAuthentication

@DeprecatedSE(since="2.3.2", forRemoval=true) public class GcpIamAuthentication extends GcpJwtAuthenticationSupport implements ClientAuthentication
非推奨、削除予定: この API 要素は、将来のバージョンで削除される可能性があります。
2.3.2 以降、代わりに GcpIamCredentialsAuthentication を使用してください。
GCP IAM サービスアカウントを使用して GCP IAM ログインを実装し、非推奨の IAM projects.serviceAccounts.signJwt メソッドを使用して JSON Web トークンを介してその正当性を検証します。

この認証方式では、Google の IAM API を使用して、特定の GoogleCredential の署名付きトークンを取得します。プロジェクトおよびサービスアカウントの詳細は、JSON ファイルまたはランタイム環境(GAE、GCE)から取得できる GoogleCredential から取得されます。

GcpIamAuthentication は、同期 API を使用する Google Java API を使用します。

導入:
2.1
作成者:
Mark Paluch, Magnus Jungsbluth, Bruno Rodrigues
関連事項:
  • コンストラクターの詳細

    • GcpIamAuthentication

      public GcpIamAuthentication(GcpIamAuthenticationOptions options, RestOperations restOperations)
      非推奨、削除予定: この API 要素は、将来のバージョンで削除される可能性があります。
      GcpIamAuthenticationOptionsRestOperations を指定して、GcpIamAuthentication の新しいインスタンスを作成します。このコンストラクターは、Google API の使用のために NetHttpTransport を初期化します。
      パラメーター:
      options - null であってはなりません。
      restOperations - Vault ログイン用の HTTP クライアントは null であってはなりません。
    • GcpIamAuthentication

      public GcpIamAuthentication(GcpIamAuthenticationOptions options, RestOperations restOperations, com.google.api.client.http.HttpTransport httpTransport)
      非推奨、削除予定: この API 要素は、将来のバージョンで削除される可能性があります。
      GcpIamAuthenticationOptionsRestOperationsHttpTransport を指定して、GcpIamAuthentication の新しいインスタンスを作成します。
      パラメーター:
      options - null であってはなりません。
      restOperations - Vault ログイン用の HTTP クライアントは null であってはなりません。
      httpTransport - Google API 使用のための HTTP クライアント。null にすることはできません。
  • 方法の詳細

    • login

      public VaultToken login() throws VaultException
      非推奨、削除予定: この API 要素は、将来のバージョンで削除される可能性があります。
      インターフェースからコピーされた説明: ClientAuthentication
      認証された Vault アクセス用の VaultToken を取得します。

      このメソッドは、Vault への認証リクエストを実行するか、キャッシュされたトークンまたは事前構成されたトークンを返す場合があります。

      次で指定:
      インターフェース ClientAuthentication 内の login 
      戻り値:
      後続の認証リクエストの Vault トークン
      例外:
      VaultLoginException - 認証が失敗した場合。
      VaultException
      関連事項:
    • signJwt

      protected StringSE signJwt()
      非推奨、削除予定: この API 要素は、将来のバージョンで削除される可能性があります。