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 SessionService
InvalidSessionException
public SessionMetadata createSession(String vdbName, String vdbVersion, AuthenticationType authType, String userName, Credentials credentials, String applicationName, Properties properties) throws LoginException, SessionServiceException
createSession
in interface SessionService
LoginException
SessionServiceException
protected 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 SessionService
public SessionMetadata getActiveSession(String sessionID)
getActiveSession
in interface SessionService
public int getActiveSessionsCount() throws SessionServiceException
getActiveSessionsCount
in interface SessionService
SessionServiceException
public Collection<SessionMetadata> getSessionsLoggedInToVDB(VDBKey key)
getSessionsLoggedInToVDB
in interface SessionService
public Collection<SessionMetadata> getSessionsLoggedInToVDB(VDBKey key, String username)
public void pingServer(String sessionID) throws InvalidSessionException
pingServer
in interface SessionService
InvalidSessionException
public boolean terminateSession(String terminatedSessionID, String adminSessionID)
terminateSession
in interface SessionService
public SessionMetadata validateSession(String sessionID) throws InvalidSessionException, SessionServiceException
validateSession
in interface SessionService
InvalidSessionException
SessionServiceException
public 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 SessionService
public SecurityHelper getSecurityHelper()
getSecurityHelper
in interface SessionService
public AuthenticationType getAuthenticationType(String vdbName, String version, String userName) throws LogonException
getAuthenticationType
in interface SessionService
LogonException
public GSSResult neogitiateGssLogin(String user, String vdbName, String vdbVersion, byte[] serviceTicket) throws LoginException, LogonException
neogitiateGssLogin
in interface SessionService
LoginException
LogonException
public AuthenticationType getDefaultAuthenticationType()
getDefaultAuthenticationType
in interface SessionService
public boolean isTrustAllLocal()
public void setTrustAllLocal(boolean trustAllLocal)
Copyright © 2019. All rights reserved.