public class AuthenticationStepsOperator extends Object implements 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.
AuthenticationSteps| Constructor and Description |
|---|
AuthenticationStepsOperator(AuthenticationSteps steps,
WebClient webClient)
|
| Modifier and Type | Method and Description |
|---|---|
Mono<VaultToken> |
getVaultToken()
Return a
VaultToken. |
public AuthenticationStepsOperator(AuthenticationSteps steps, WebClient webClient)
steps - must not be null.webClient - must not be null.public Mono<VaultToken> getVaultToken() throws VaultException
VaultTokenSupplierVaultToken. This can declare a Vault login flow to obtain a
token.getVaultToken in interface VaultTokenSupplierMono with the VaultToken.VaultExceptionCopyright © 2016–2022 Pivotal Software, Inc.. All rights reserved.