Class SimpleSessionManager
java.lang.Object
org.springframework.vault.authentication.SimpleSessionManager
- All Implemented Interfaces:
SessionManager
Default implementation of
SessionManager.
Uses a synchronized login method to log into Vault and reuse the resulting
VaultToken throughout session lifetime.
- Author:
- Mark Paluch
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleSessionManager(ClientAuthentication clientAuthentication) Create a newSimpleSessionManagerusing aClientAuthentication. -
Method Summary
-
Constructor Details
-
SimpleSessionManager
Create a newSimpleSessionManagerusing aClientAuthentication.- Parameters:
clientAuthentication- must not be null.
-
-
Method Details
-
getSessionToken
Description copied from interface:SessionManagerObtain a session token.- Specified by:
getSessionTokenin interfaceSessionManager- Returns:
- a session token.
-