Package com.soffid.iam.service
Interface SessionService
-
public interface SessionServiceService SessionService
-
-
Field Summary
Fields Modifier and Type Field Description static StringREMOTE_PATHstatic StringSERVICE_NAME
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcleanTransientKey(long id, String key)Operation cleanTransientKeyvoiddestroySession(Session sessio)Operation destroySessionCollection<Session>findActiveSessions()Operation findActiveSessionsCollection<Session>getActiveSessions()Operation getActiveSessionsCollection<Session>getActiveSessions(long idUsuari)Operation getActiveSessionsSessiongetSession(long id, String key)Operation getSessionSessiongetSessionByHost(long id, String hostIp)Operation getSessionByHostSessionregisterSession(String codiUsuari, String nomMaquina, String nomAquinaClient, int port, String key, String authenticationMethod)Operation registerSessionSessionregisterWebSession(String codiUsuari, String nomMaquina, String nomMaquinaClient, String url, String authenticationMethod)Operation registerWebSessionvoidsessionKeepAlive(Session session)Operation sessionKeepAliveStringupdateTransientKey(long id, String key)Operation updateTransientKey
-
-
-
Field Detail
-
REMOTE_PATH
static final String REMOTE_PATH
- See Also:
- Constant Field Values
-
SERVICE_NAME
static final String SERVICE_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getSessionByHost
Session getSessionByHost(long id, String hostIp) throws InternalErrorException, InternalErrorException
Operation getSessionByHost- Parameters:
id-hostIp-- Returns:
- Throws:
InternalErrorException
-
getSession
Session getSession(long id, String key) throws InternalErrorException, InternalErrorException
Operation getSession- Parameters:
id-key-- Returns:
- Throws:
InternalErrorException
-
registerSession
Session registerSession(String codiUsuari, String nomMaquina, String nomAquinaClient, int port, String key, String authenticationMethod) throws InternalErrorException, InternalErrorException
Operation registerSession- Parameters:
codiUsuari-nomMaquina-nomAquinaClient-port-key-authenticationMethod-- Returns:
- Throws:
InternalErrorException
-
registerWebSession
Session registerWebSession(String codiUsuari, String nomMaquina, String nomMaquinaClient, String url, String authenticationMethod) throws InternalErrorException, InternalErrorException, UnknownUserException
Operation registerWebSession- Parameters:
codiUsuari-nomMaquina-nomMaquinaClient-url-authenticationMethod-- Returns:
- Throws:
InternalErrorExceptionUnknownUserException
-
updateTransientKey
String updateTransientKey(long id, String key) throws InternalErrorException, InternalErrorException
Operation updateTransientKey- Parameters:
id-key-- Returns:
- Throws:
InternalErrorException
-
findActiveSessions
Collection<Session> findActiveSessions() throws InternalErrorException, InternalErrorException
Operation findActiveSessions- Returns:
- Throws:
InternalErrorException
-
getActiveSessions
Collection<Session> getActiveSessions() throws InternalErrorException, InternalErrorException
Operation getActiveSessions- Returns:
- Throws:
InternalErrorException
-
getActiveSessions
Collection<Session> getActiveSessions(long idUsuari) throws InternalErrorException, InternalErrorException
Operation getActiveSessions- Parameters:
idUsuari-- Returns:
- Throws:
InternalErrorException
-
cleanTransientKey
void cleanTransientKey(long id, String key) throws InternalErrorException, InternalErrorExceptionOperation cleanTransientKey- Parameters:
id-key-- Throws:
InternalErrorException
-
destroySession
void destroySession(Session sessio) throws InternalErrorException, InternalErrorException
Operation destroySession- Parameters:
sessio-- Throws:
InternalErrorException
-
sessionKeepAlive
void sessionKeepAlive(Session session) throws InternalErrorException, InternalErrorException
Operation sessionKeepAlive- Parameters:
session-- Throws:
InternalErrorException
-
-