|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbe.ehealth.technicalconnector.session.impl.SessionManagerImpl
public final class SessionManagerImpl
Implementation of SessionManager
| Field Summary | |
|---|---|
static String |
PROP_FETCH_ETK
Configuration to (des)activate the fetch of an Encryption Token linked to the session. |
| Method Summary | |
|---|---|
SessionItem |
createFallbackSession(String hokPwd)
Creates a fallback session using a eHealth certificate stored on the computer. |
SessionItem |
createFallbackSession(String hokPwd,
String encryptionPwd)
Creates a fallback session using a eHealth certificate stored on the computer. |
SessionItem |
createFallbackSession(String idnetPwd,
String hokPwd,
String encryptionPwd)
Creates a fallback session using a eHealth certificate stored on the computer. |
SessionItem |
createSession(String hokPwd)
Creates a session using the certificate on the eID of the user and an holder of key certificate stored on the computer. |
SessionItem |
createSession(String hokPwd,
String encryptionPwd)
Creates a session using the certificate on the eID of the user and an holder of key certificate stored on the computer. |
SessionItem |
createSessionEidOnly()
Creates a session only based on eid card. |
static SessionManagerImpl |
getInstance()
|
SessionItem |
getSession()
Gets the current session. |
boolean |
hasValidSession()
Checks for valid session. |
void |
loadEncryptionKeys(String encryptionPwd)
|
void |
loadSession(SAMLToken token,
String hokPwd)
Load a session using a previously stored SAML token. |
void |
loadSession(SAMLToken token,
String hokPwd,
String encryptionPwd)
Load a session using a previously stored SAML token with the associated eHealth Encryption Certificates, needed for sealing and unsealing messages. |
void |
registerSessionService(SessionServiceWithCache serviceWithCache)
This method will register all the session service with a cache. |
void |
setKeyStore(Map<String,KeyStore> keystores)
Method to set the keyStores that the sessionManagment should use. |
void |
unloadSession()
Unload the current session. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String PROP_FETCH_ETK
| Method Detail |
|---|
public static SessionManagerImpl getInstance()
public void loadSession(SAMLToken token,
String hokPwd)
throws TechnicalConnectorException
SessionManager
loadSession in interface SessionManagertoken - the token to loadhokPwd - the holder of key password
TechnicalConnectorException - the technical connector exception
public void loadSession(SAMLToken token,
String hokPwd,
String encryptionPwd)
throws TechnicalConnectorException
SessionManager
loadSession in interface SessionManagertoken - the token to loadhokPwd - the holder of key passwordencryptionPwd - the encryption of key password
TechnicalConnectorException
public SessionItem createSessionEidOnly()
throws TechnicalConnectorException
SessionManager
createSessionEidOnly in interface SessionManagerSessionItem not usable for encryption
TechnicalConnectorException
public SessionItem createSession(String hokPwd)
throws TechnicalConnectorException
SessionManager
createSession in interface SessionManagerhokPwd - the holder of key password
TechnicalConnectorException - the technical connector exception
public SessionItem createSession(String hokPwd,
String encryptionPwd)
throws TechnicalConnectorException
SessionManager
createSession in interface SessionManagerhokPwd - the holder of key passwordencryptionPwd - the encryption of key password
TechnicalConnectorException - the technical connector exception
public SessionItem createFallbackSession(String hokPwd)
throws TechnicalConnectorException
SessionManager
createFallbackSession in interface SessionManagerhokPwd - the holder of key password
TechnicalConnectorException - the technical connector exception
public SessionItem createFallbackSession(String hokPwd,
String encryptionPwd)
throws TechnicalConnectorException
SessionManager
createFallbackSession in interface SessionManagerhokPwd - the holder of key passwordencryptionPwd - the encryption of key password
TechnicalConnectorException - the technical connector exception
public SessionItem createFallbackSession(String idnetPwd,
String hokPwd,
String encryptionPwd)
throws TechnicalConnectorException
SessionManager
createFallbackSession in interface SessionManageridnetPwd - the identification pwdhokPwd - the holder of key passwordencryptionPwd - the encryption of key password
TechnicalConnectorException - the technical connector exceptionpublic SessionItem getSession()
SessionManager
getSession in interface SessionManagerpublic void unloadSession()
SessionManager
unloadSession in interface SessionManager
public boolean hasValidSession()
throws SessionManagementException
SessionManager
hasValidSession in interface SessionManagerSessionManagementException
public void loadEncryptionKeys(String encryptionPwd)
throws TechnicalConnectorException
loadEncryptionKeys in interface SessionManagerencryptionPwd - the encryption of key password
TechnicalConnectorExceptionpublic void registerSessionService(SessionServiceWithCache serviceWithCache)
SessionManager
registerSessionService in interface SessionManagerbe.ehealth.technicalconnector.session.SessionManager#registreCacheCleaner(be.ehealth.businessconnector.CleanUpCache)public void setKeyStore(Map<String,KeyStore> keystores)
SessionManager
setKeyStore in interface SessionManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||