クラス AppRoleAuthentication
java.lang.ObjectSE
org.springframework.vault.authentication.AppRoleAuthentication
- 実装されているすべてのインターフェース:
AuthenticationStepsFactory,ClientAuthentication
public class AppRoleAuthentication
extends ObjectSE
implements ClientAuthentication, AuthenticationStepsFactory
ClientAuthentication の AppRole 実装。RoleId および SecretId (オプション) は、VaultToken を取得するために Vault へのログインリクエストで送信されます。AppRoleAuthenticationOptions.getSecretId() を設定することにより、AppRoleAuthentication をプッシュおよびプルモードに設定できます。
- 作成者:
- Mark Paluch, Vincent Le Nair, Christophe Tafani-Dereeper
- 関連事項:
コンストラクターの概要
コンストラクターコンストラクター説明AppRoleAuthentication(AppRoleAuthenticationOptions options, RestClient client) AppRoleAuthentication(AppRoleAuthenticationOptions options, RestOperations restOperations) 方法の概要
修飾子と型メソッド説明static AuthenticationStepsAppRoleAuthenticationOptionsを指定して、AppRole 認証用のAuthenticationStepsを作成します。認証フローを記述するAuthenticationStepsを取得します。login()認証された Vault アクセス用のVaultTokenを取得します。
コンストラクターの詳細
AppRoleAuthentication
- パラメーター:
options- null であってはなりません。restOperations- null であってはなりません。
AppRoleAuthentication
- パラメーター:
options- null であってはなりません。client- null であってはなりません。- 導入:
- 4.0
メソッドの詳細
createAuthenticationSteps
AppRoleAuthenticationOptionsを指定して、AppRole 認証用のAuthenticationStepsを作成します。- パラメーター:
options- null であってはなりません。- 戻り値:
- AppRole 認証の場合は
AuthenticationSteps。 - 導入:
- 2.0
login
インターフェースからコピーされた説明:ClientAuthentication認証された Vault アクセス用のVaultTokenを取得します。このメソッドは、Vault への認証リクエストを実行するか、キャッシュされたトークンまたは事前構成されたトークンを返す場合があります。
- 次で指定:
- インターフェース
ClientAuthenticationのlogin - 戻り値:
- 後続の認証リクエストの Vault トークン
- 関連事項:
getAuthenticationSteps
インターフェースからコピーされた説明:AuthenticationStepsFactory認証フローを記述するAuthenticationStepsを取得します。- 次で指定:
- インターフェース
AuthenticationStepsFactoryのgetAuthenticationSteps - 戻り値:
- 認証フローを記述する
AuthenticationSteps。