クラス 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 を使用して、特定の Credential の署名付きトークンを取得します。プロジェクトとサービスアカウントの詳細は、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
      VaultToken を返します。このメソッドは、必要に応じて Vault にログインして token を取得できます。
      次で指定:
      インターフェース ClientAuthenticationlogin 
      戻り値:
      VaultToken
      例外:
      VaultException
    • signJwt

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