public class CachingVaultTokenSupplier extends Object implements VaultTokenSupplier, ReactiveSessionManager
VaultTokenSupplier
caching the VaultToken
from a delegate VaultTokenSupplier
.VaultTokenSupplier
,
VaultToken
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<VaultToken> |
getVaultToken()
Return a
VaultToken . |
static CachingVaultTokenSupplier |
of(VaultTokenSupplier delegate)
Creates a new
CachingVaultTokenSupplier given a delegate supplier . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSessionToken
public static CachingVaultTokenSupplier of(VaultTokenSupplier delegate)
CachingVaultTokenSupplier
given a delegate supplier
.delegate
- must not be null.CachingVaultTokenSupplier
for a delegate supplier
.public reactor.core.publisher.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.