public class SimpleSessionManager 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 |
---|
SimpleSessionManager(ClientAuthentication clientAuthentication)
Create a new
SimpleSessionManager using a ClientAuthentication . |
Modifier and Type | Method and Description |
---|---|
VaultToken |
getSessionToken()
Obtain a session token.
|
public SimpleSessionManager(ClientAuthentication clientAuthentication)
SimpleSessionManager
using a ClientAuthentication
.clientAuthentication
- must not be null.public VaultToken getSessionToken()
SessionManager
getSessionToken
in interface SessionManager
Copyright © 2016–2017 Pivotal Software, Inc.. All rights reserved.