public class DefaultSessionManager extends Object implements SessionManager
SessionManager
.
Uses a synchronized login method to log into Vault and reuse the resulting VaultToken
throughout session
lifetime.
ClientAuthentication
,
VaultToken
Constructor and Description |
---|
DefaultSessionManager(ClientAuthentication clientAuthentication)
Creates a new
DefaultSessionManager using a ClientAuthentication . |
Modifier and Type | Method and Description |
---|---|
VaultToken |
getSessionToken()
Obtain a session token.
|
public DefaultSessionManager(ClientAuthentication clientAuthentication)
DefaultSessionManager
using a ClientAuthentication
.clientAuthentication
- must not be null.public VaultToken getSessionToken()
SessionManager
getSessionToken
in interface SessionManager
Copyright © 2016 Pivotal Software, Inc.. All rights reserved.