クラス UsernamePasswordAuthentication
java.lang.ObjectSE
org.springframework.vault.authentication.UsernamePasswordAuthentication
- 実装済みのインターフェース一覧:
AuthenticationStepsFactory,ClientAuthentication
public class UsernamePasswordAuthentication
extends ObjectSE
implements ClientAuthentication, AuthenticationStepsFactory
- 導入:
- 2.4
- 作成者:
- Mikhael Sokolov, Mark Paluch
- 関連事項:
コンストラクター概要
コンストラクターコンストラクター説明UsernamePasswordAuthentication(UsernamePasswordAuthenticationOptions options, RestOperations restOperations) 方法の概要
修飾子と型メソッド説明static AuthenticationStepsUsernamePasswordAuthenticationOptionsを指定して、ユーザー名 / パスワード認証用のAuthenticationStepsを作成します。認証フローを記述するAuthenticationStepsを取得します。login()VaultTokenを返します。
コンストラクターの詳細
UsernamePasswordAuthentication
public UsernamePasswordAuthentication(UsernamePasswordAuthenticationOptions options, RestOperations restOperations)
メソッドの詳細
createAuthenticationSteps
public static AuthenticationSteps createAuthenticationSteps(UsernamePasswordAuthenticationOptions options) UsernamePasswordAuthenticationOptionsを指定して、ユーザー名 / パスワード認証用のAuthenticationStepsを作成します。- パラメーター:
options- null であってはなりません。- 戻り値:
- ユーザー名 / パスワード認証の場合は
AuthenticationSteps。
login
インターフェースからコピーされた説明:ClientAuthenticationVaultTokenを返します。このメソッドは、必要に応じて Vault にログインしてtokenを取得できます。- 次で指定:
- インターフェース
ClientAuthenticationのlogin - 戻り値:
VaultToken。- 例外:
VaultException
getAuthenticationSteps
インターフェースからコピーされた説明:AuthenticationStepsFactory認証フローを記述するAuthenticationStepsを取得します。- 次で指定:
- インターフェース
AuthenticationStepsFactoryのgetAuthenticationSteps - 戻り値:
- 認証フローを記述する
AuthenticationSteps。