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
ConstructorDescriptionSimpleSessionManager
(ClientAuthentication clientAuthentication) Create a newSimpleSessionManager
using aClientAuthentication
. -
Method Summary
-
Constructor Details
-
SimpleSessionManager
Create a newSimpleSessionManager
using aClientAuthentication
.- Parameters:
clientAuthentication
- must not be null.
-
-
Method Details
-
getSessionToken
Description copied from interface:SessionManager
Obtain a session token.- Specified by:
getSessionToken
in interfaceSessionManager
- Returns:
- a session token.
-