public class DbSessionManager extends Object
Modifier | Constructor and Description |
---|---|
protected |
DbSessionManager()
Prevents class instantiation
|
Modifier and Type | Method and Description |
---|---|
void |
add(String token,
org.springframework.security.core.Authentication auth)
Add a new session
|
org.springframework.security.core.Authentication |
getAuthentication(String token)
Return a session
|
DbSessionInfo |
getInfo(String token)
Return a session info
|
static DbSessionManager |
getInstance()
Instantiate a SessionManager.
|
Map<String,DbSessionInfo> |
getSessions()
Get active sessions
|
String |
getSystemToken()
Get system token
|
String |
getToken(org.springframework.security.core.Authentication auth)
Return a token which pertains to a authentication session
|
List<String> |
getTokens()
Return all active tokens
|
void |
putSystemSession()
Set system session
|
void |
remove(String token)
Remove a session
|
public static DbSessionManager getInstance()
public String getSystemToken()
public void putSystemSession()
public void add(String token, org.springframework.security.core.Authentication auth)
public org.springframework.security.core.Authentication getAuthentication(String token)
public String getToken(org.springframework.security.core.Authentication auth)
public DbSessionInfo getInfo(String token)
public void remove(String token)
public Map<String,DbSessionInfo> getSessions()
Copyright © 2016. All rights reserved.