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, VaultClient vaultClient, RestClient restClient) AuthenticationStepsExecutor(AuthenticationSteps steps, RestClient client) AuthenticationStepsExecutor(AuthenticationSteps steps, RestOperations restOperations) Deprecated. -
Method Summary
-
Constructor Details
-
AuthenticationStepsExecutor
@Deprecated(since="4.1") public AuthenticationStepsExecutor(AuthenticationSteps steps, RestOperations restOperations) Deprecated.since 4.1, useAuthenticationStepsExecutor(AuthenticationSteps, VaultClient, RestClient)instead.- Parameters:
steps- must not be null.restOperations- must not be null.
-
AuthenticationStepsExecutor
- Parameters:
steps- must not be null.client- must not be null.- Since:
- 4.0
-
AuthenticationStepsExecutor
public AuthenticationStepsExecutor(AuthenticationSteps steps, VaultClient vaultClient, RestClient restClient) - Parameters:
steps- must not be null.vaultClient- must not be null.restClient- must not be null.- Since:
- 4.1
-
-
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:
-
AuthenticationStepsExecutor(AuthenticationSteps, VaultClient, RestClient)instead.