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
VaultTokenSupplier
VaultToken
. This can declare a Vault login flow to obtain a
token
.getVaultToken
in interface VaultTokenSupplier
Mono
with the VaultToken
.VaultException
Copyright © 2016–2020 Pivotal Software, Inc.. All rights reserved.