クラス 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()認証された Vault アクセス用のVaultTokenを取得します。
コンストラクターの詳細
UsernamePasswordAuthentication
public UsernamePasswordAuthentication(UsernamePasswordAuthenticationOptions options, RestOperations restOperations) UsernamePasswordAuthenticationOptionsおよびRestOperationsを使用してUsernamePasswordAuthenticationを作成します。- パラメーター:
options- null であってはなりません。restOperations- null であってはなりません。
UsernamePasswordAuthentication
public UsernamePasswordAuthentication(UsernamePasswordAuthenticationOptions options, RestClient client) - パラメーター:
options- null であってはなりません。client- null であってはなりません。- 導入:
- 4.0
メソッドの詳細
createAuthenticationSteps
public static AuthenticationSteps createAuthenticationSteps(UsernamePasswordAuthenticationOptions options) UsernamePasswordAuthenticationOptionsを指定して、ユーザー名 / パスワード認証用のAuthenticationStepsを作成します。- パラメーター:
options- null であってはなりません。- 戻り値:
- ユーザー名 / パスワード認証の場合は
AuthenticationSteps。
login
インターフェースからコピーされた説明:ClientAuthentication認証された Vault アクセス用のVaultTokenを取得します。このメソッドは、Vault への認証リクエストを実行するか、キャッシュされたトークンまたは事前構成されたトークンを返す場合があります。
- 次で指定:
- インターフェース
ClientAuthenticationのlogin - 戻り値:
- 後続の認証リクエストの Vault トークン
- 例外:
VaultLoginException- 認証が失敗した場合。VaultException- 関連事項:
getAuthenticationSteps
インターフェースからコピーされた説明:AuthenticationStepsFactory認証フローを記述するAuthenticationStepsを取得します。- 次で指定:
- インターフェース
AuthenticationStepsFactoryのgetAuthenticationSteps - 戻り値:
- 認証フローを記述する
AuthenticationSteps。