Class AuthenticationStepsOperator
java.lang.Object
org.springframework.vault.authentication.AuthenticationStepsOperator
- All Implemented Interfaces:
VaultTokenSupplier
VaultTokenSupplier using AuthenticationSteps to create an
authentication flow emitting VaultToken.
This class uses ReactiveVaultClient for non-blocking and reactive
HTTP Vault access. It also uses WebClient for external HTTP access.
The authentication flow materializes as reactive
sequence postponing execution until subscription.
Supplier instances are inspected for their type.
ResourceCredentialSupplier instances are loaded through
DataBufferUtils to use non-blocking I/O for file access.
Calls to generic supplier types are offloaded to a
scheduler to avoid blocking calls on
reactive worker/eventloop threads.
- Since:
- 2.0
- Author:
- Mark Paluch
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAuthenticationStepsOperator(AuthenticationSteps steps, ReactiveVaultClient vaultClient, WebClient webClient) Create a newAuthenticationStepsOperatorgivenAuthenticationSteps,ReactiveVaultClient, andWebClient.AuthenticationStepsOperator(AuthenticationSteps steps, WebClient webClient) -
Method Summary
-
Constructor Details
-
AuthenticationStepsOperator
- Parameters:
steps- must not be null.webClient- must not be null.
-
AuthenticationStepsOperator
public AuthenticationStepsOperator(AuthenticationSteps steps, ReactiveVaultClient vaultClient, WebClient webClient) Create a newAuthenticationStepsOperatorgivenAuthenticationSteps,ReactiveVaultClient, andWebClient.- Parameters:
steps- must not be null.vaultClient- must not be null.webClient- must not be null.- Since:
- 4.1
-
-
Method Details
-
getVaultToken
Description copied from interface:VaultTokenSupplierReturn aVaultToken. This can declare a Vault login flow to obtain atoken.- Specified by:
getVaultTokenin interfaceVaultTokenSupplier- Returns:
- a
Monowith theVaultToken. - Throws:
VaultException
-