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 WebClient for non-blocking and reactive HTTP access. The
authentication flow is materialized 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
Constructors -
Method Summary
-
Constructor Details
-
AuthenticationStepsOperator
- Parameters:
steps- must not be null.webClient- must not be null.
-
-
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
-