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.
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–2019 Pivotal Software, Inc.. All rights reserved.