Class CachingVaultTokenSupplier
java.lang.Object
org.springframework.vault.authentication.CachingVaultTokenSupplier
- All Implemented Interfaces:
ReactiveSessionManager,VaultTokenSupplier
public class CachingVaultTokenSupplier
extends Object
implements VaultTokenSupplier, ReactiveSessionManager
Default implementation of
VaultTokenSupplier caching the VaultToken
from a delegate VaultTokenSupplier.- Since:
- 2.0
- Author:
- Mark Paluch
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturn aVaultToken.static CachingVaultTokenSupplierof(VaultTokenSupplier delegate) Creates a newCachingVaultTokenSuppliergiven adelegate supplier.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.vault.authentication.ReactiveSessionManager
getSessionToken
-
Method Details
-
of
Creates a newCachingVaultTokenSuppliergiven adelegate supplier.- Parameters:
delegate- must not be null.- Returns:
- the
CachingVaultTokenSupplierfor adelegate supplier.
-
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
-