インターフェース 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.GoogleCredentialsget()getCredentials()からServiceAccountCredentialsを取得するための例外安全なヘルパー。com.google.auth.oauth2.GoogleCredentialsJWT 署名経由で GCP IAM 認証情報認証用のGoogleCredentialsを取得します。
メソッドの詳細
get
default com.google.auth.oauth2.GoogleCredentials get()getCredentials()からServiceAccountCredentialsを取得するための例外安全なヘルパー。- 次で指定:
- インターフェース
SupplierSE<com.google.auth.oauth2.GoogleCredentials>のget - 戻り値:
- JWT 署名用の ServiceAccountCredentials。
getCredentials
JWT 署名経由で GCP IAM 認証情報認証用のGoogleCredentialsを取得します。- 戻り値:
GoogleCredentials- 例外:
IOExceptionSE- 資格情報の検索が失敗した場合。