Class AuthenticationStepsExecutor
java.lang.Object
org.springframework.vault.authentication.AuthenticationStepsExecutor
- All Implemented Interfaces:
ClientAuthentication
Synchronous executor for
AuthenticationSteps using
RestOperations to login using authentication flows.- Since:
- 2.0
- Author:
- Mark Paluch
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAuthenticationStepsExecutor(AuthenticationSteps steps, RestOperations restOperations) -
Method Summary
-
Constructor Details
-
AuthenticationStepsExecutor
- Parameters:
steps- must not be null.restOperations- must not be null.
-
-
Method Details
-
login
Description copied from interface:ClientAuthenticationObtain aVaultTokenfor authenticated Vault access.This method may perform an authentication request to Vault or return a cached or pre-configured token.
- Specified by:
loginin interfaceClientAuthentication- Returns:
- the Vault token for subsequent authenticated requests
- Throws:
VaultLoginException- if authentication fails.VaultException- See Also:
-