public class SessionServiceImpl extends Object implements SessionService
| Modifier and Type | Field and Description |
|---|---|
static String |
AT |
static String |
AUTHENTICATION_TYPE_PROPERTY |
static String |
GSS_PATTERN_PROPERTY |
static String |
MAX_SESSIONS_PER_USER |
static String |
PASSWORD_PATTERN_PROPERTY |
static String |
SECURITY_DOMAIN_PROPERTY |
protected SecurityHelper |
securityHelper |
DEFAULT_MAX_SESSIONS, DEFAULT_SESSION_EXPIRATION, NAME| Constructor and Description |
|---|
SessionServiceImpl() |
public static final String GSS_PATTERN_PROPERTY
public static final String PASSWORD_PATTERN_PROPERTY
public static final String SECURITY_DOMAIN_PROPERTY
public static final String AUTHENTICATION_TYPE_PROPERTY
public static final String MAX_SESSIONS_PER_USER
public static final String AT
protected SecurityHelper securityHelper
public void setSecurityDomain(String domainName)
public void closeSession(String sessionID) throws InvalidSessionException
closeSession in interface SessionServiceInvalidSessionExceptionpublic SessionMetadata createSession(String vdbName, String vdbVersion, AuthenticationType authType, String userName, Credentials credentials, String applicationName, Properties properties) throws LoginException, SessionServiceException
createSession in interface SessionServiceLoginExceptionSessionServiceExceptionprotected VDBMetaData getActiveVDB(String vdbName, String vdbVersion) throws SessionServiceException
vdbName - vdbVersion - SessionServiceException - if the version is not valid or the vdb doesn't accept connectionspublic Collection<SessionMetadata> getActiveSessions()
getActiveSessions in interface SessionServicepublic SessionMetadata getActiveSession(String sessionID)
getActiveSession in interface SessionServicepublic int getActiveSessionsCount()
throws SessionServiceException
getActiveSessionsCount in interface SessionServiceSessionServiceExceptionpublic Collection<SessionMetadata> getSessionsLoggedInToVDB(VDBKey key)
getSessionsLoggedInToVDB in interface SessionServicepublic Collection<SessionMetadata> getSessionsLoggedInToVDB(VDBKey key, String username)
public void pingServer(String sessionID) throws InvalidSessionException
pingServer in interface SessionServiceInvalidSessionExceptionpublic boolean terminateSession(String terminatedSessionID, String adminSessionID)
terminateSession in interface SessionServicepublic SessionMetadata validateSession(String sessionID) throws InvalidSessionException, SessionServiceException
validateSession in interface SessionServiceInvalidSessionExceptionSessionServiceExceptionpublic long getSessionMaxLimit()
public void setSessionMaxLimit(long limit)
public long getSessionExpirationTimeLimit()
public void setSessionExpirationTimeLimit(long limit)
public void setAuthenticationType(AuthenticationType flag)
public void start()
public void stop()
public void setVDBRepository(VDBRepository repo)
public void setSecurityHelper(SecurityHelper securityHelper)
public void setDqp(DQPCore dqp)
setDqp in interface SessionServicepublic SecurityHelper getSecurityHelper()
getSecurityHelper in interface SessionServicepublic AuthenticationType getAuthenticationType(String vdbName, String version, String userName) throws LogonException
getAuthenticationType in interface SessionServiceLogonExceptionpublic GSSResult neogitiateGssLogin(String user, String vdbName, String vdbVersion, byte[] serviceTicket) throws LoginException, LogonException
neogitiateGssLogin in interface SessionServiceLoginExceptionLogonExceptionpublic AuthenticationType getDefaultAuthenticationType()
getDefaultAuthenticationType in interface SessionServicepublic boolean isTrustAllLocal()
public void setTrustAllLocal(boolean trustAllLocal)
Copyright © 2020. All rights reserved.