インターフェース GoogleCredentialsSupplier

すべてのスーパーインターフェース:
SupplierSE<com.google.auth.oauth2.GoogleCredentials>
関数インターフェース:
これは関数インターフェースであるため、ラムダ式またはメソッド参照の割り当てターゲットとして使用できます。

@FunctionalInterfaceSE public interface GoogleCredentialsSupplier extends SupplierSE<com.google.auth.oauth2.GoogleCredentials>
GCP IAM 認証情報認証用の ServiceAccountCredentials を取得するためのインターフェース。実装は GcpIamCredentialsAuthentication によって使用されます。
導入:
2.3.2
作成者:
Andreas Gebauer
関連事項:
  • 方法の概要

    修飾子と型
    メソッド
    説明
    default com.google.auth.oauth2.GoogleCredentials
    get()
    getCredentials() から ServiceAccountCredentials を取得するための例外安全なヘルパー。
    com.google.auth.oauth2.GoogleCredentials
    JWT 署名経由で GCP IAM 認証情報認証用の GoogleCredentials を取得します。
  • メソッドの詳細

    • get

      default com.google.auth.oauth2.GoogleCredentials get()
      getCredentials() から ServiceAccountCredentials を取得するための例外安全なヘルパー。
      次で指定:
      インターフェース SupplierSE<com.google.auth.oauth2.GoogleCredentials>get 
      戻り値:
      JWT 署名用の ServiceAccountCredentials。
    • getCredentials

      com.google.auth.oauth2.GoogleCredentials getCredentials() throws IOExceptionSE
      JWT 署名経由で GCP IAM 認証情報認証用の GoogleCredentials を取得します。
      戻り値:
      GoogleCredentials
      例外:
      IOExceptionSE - 資格情報の検索が失敗した場合。