public interface SessionService
The session service deals with managing sessions; this involves creating sessions, closing sessions, terminating sessions, and updating session state. Note that this service does not deal with authentication explicitly, but may use a membership service provider to authenticate some requests.
| Modifier and Type | Field and Description |
|---|---|
static long |
DEFAULT_MAX_SESSIONS |
static long |
DEFAULT_SESSION_EXPIRATION |
static String |
MAX_SESSIONS |
static String |
NAME |
static String |
SESSION_EXPIRATION |
| Modifier and Type | Method and Description |
|---|---|
void |
closeSession(String sessionID)
Closes the specified session.
|
SessionMetadata |
createSession(String vdbName,
String vdbVersion,
AuthenticationType authType,
String user,
Credentials credential,
String applicationName,
Properties connProps)
Create a session for the given user authenticating against the given
Credentials. |
SessionMetadata |
getActiveSession(String sessionID) |
Collection<SessionMetadata> |
getActiveSessions()
Get the collection of active user sessions on the system.
|
int |
getActiveSessionsCount()
Get the number of active user sessions on the system.
|
AuthenticationType |
getAuthenticationType(String vdbName,
String version,
String user) |
AuthenticationType |
getDefaultAuthenticationType() |
SecurityHelper |
getSecurityHelper() |
Collection<SessionMetadata> |
getSessionsLoggedInToVDB(VDBKey vdbKey)
Get all Sessions that are in the ACTIVE state
and currently logged in to a VDB.
|
GSSResult |
neogitiateGssLogin(String user,
String vdbName,
String vdbVersion,
byte[] serviceTicket) |
void |
pingServer(String sessionID)
Periodically called by the client to indicate the client is still alive.
|
void |
setDqp(DQPCore dqp) |
boolean |
terminateSession(String terminatedSessionID,
String adminSessionID)
Terminates the specified session.
|
SessionMetadata |
validateSession(String sessionID)
This method is intended to verify that the session is valid, and, if
need be, set the session in an active state, ready to be used.
|
static final String NAME
static final long DEFAULT_MAX_SESSIONS
static final long DEFAULT_SESSION_EXPIRATION
static final String MAX_SESSIONS
static final String SESSION_EXPIRATION
SessionMetadata createSession(String vdbName, String vdbVersion, AuthenticationType authType, String user, Credentials credential, String applicationName, Properties connProps) throws LoginException, SessionServiceException
Credentials.void closeSession(String sessionID) throws InvalidSessionException
InvalidSessionExceptionboolean terminateSession(String terminatedSessionID, String adminSessionID)
terminatedSessionID - The SessionID identifying user's session to be terminatedadminSessionID - The session id identifying session of administratorCollection<SessionMetadata> getActiveSessions()
int getActiveSessionsCount()
throws SessionServiceException
SessionServiceExceptionSessionMetadata validateSession(String sessionID) throws InvalidSessionException, SessionServiceException
sessionID - SessionID representing the sessionInvalidSessionExceptionSessionServiceExceptionCollection<SessionMetadata> getSessionsLoggedInToVDB(VDBKey vdbKey)
vdbKey - void pingServer(String sessionID) throws InvalidSessionException
sessionID - - identifies the clientInvalidSessionExceptionSessionMetadata getActiveSession(String sessionID)
void setDqp(DQPCore dqp)
AuthenticationType getAuthenticationType(String vdbName, String version, String user) throws LogonException
LogonExceptionSecurityHelper getSecurityHelper()
GSSResult neogitiateGssLogin(String user, String vdbName, String vdbVersion, byte[] serviceTicket) throws LoginException, LogonException
LoginExceptionLogonExceptionAuthenticationType getDefaultAuthenticationType()
Copyright © 2017 JBoss by Red Hat. All rights reserved.