public interface SessionManager
Modifier and Type | Method and Description |
---|---|
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 identPwd,
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.
|
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.
|
void loadSession(SAMLToken token, String hokPwd) throws TechnicalConnectorException
token
- the token to loadhokPwd
- the holder of key passwordTechnicalConnectorException
- the technical connector exceptionvoid loadSession(SAMLToken token, String hokPwd, String encryptionPwd) throws TechnicalConnectorException
token
- the token to loadhokPwd
- the holder of key passwordencryptionPwd
- the encryption of key passwordTechnicalConnectorException
SessionItem createSessionEidOnly() throws TechnicalConnectorException
SessionItem
not usable for encryptionTechnicalConnectorException
SessionItem createSession(String hokPwd) throws SessionManagementException, TechnicalConnectorException
hokPwd
- the holder of key passwordTechnicalConnectorException
- the technical connector exceptionSessionManagementException
SessionItem createSession(String hokPwd, String encryptionPwd) throws SessionManagementException, TechnicalConnectorException
hokPwd
- the holder of key passwordencryptionPwd
- the encryption of key passwordTechnicalConnectorException
- the technical connector exceptionSessionManagementException
SessionItem createFallbackSession(String hokPwd) throws SessionManagementException, TechnicalConnectorException
hokPwd
- the holder of key passwordTechnicalConnectorException
- the technical connector exceptionSessionManagementException
SessionItem createFallbackSession(String hokPwd, String encryptionPwd) throws SessionManagementException, TechnicalConnectorException
hokPwd
- the holder of key passwordencryptionPwd
- the encryption of key passwordTechnicalConnectorException
- the technical connector exceptionSessionManagementException
SessionItem createFallbackSession(String identPwd, String hokPwd, String encryptionPwd) throws SessionManagementException, TechnicalConnectorException
identPwd
- the identification pwdhokPwd
- the holder of key passwordencryptionPwd
- the encryption of key passwordTechnicalConnectorException
- the technical connector exceptionSessionManagementException
SessionItem getSession()
void unloadSession()
boolean hasValidSession() throws SessionManagementException
SessionManagementException
void loadEncryptionKeys(String encryptionPwd) throws TechnicalConnectorException
encryptionPwd
- the encryption of key passwordTechnicalConnectorException
void registerSessionService(SessionServiceWithCache serviceWithCache)
serviceWithCache
- be.ehealth.technicalconnector.session.SessionManager#registreCacheCleaner(be.ehealth.businessconnector.CleanUpCache)
Connector Packaging TECHNICAL 4.0.2 API
Copyright © {inceptionYear}-2021 eHealth. All Rights Reserved.