public final class KeyDepotManagerImpl extends Object implements KeyDepotManager, SessionServiceWithCache
KeyDepotManager
and SessionServiceWithCache
KeyDepotManager.EncryptionTokenType
Modifier and Type | Method and Description |
---|---|
void |
flushCache()
Method to flush the cache after invoking this method.
|
EncryptionToken |
getETK(IdentifierType identifierType,
Long identifierValue,
String application)
Gets the
EncryptionToken based on the input parameters |
EncryptionToken |
getETK(KeyDepotManager.EncryptionTokenType type)
Gets the
EncryptionToken linked with the given EncryptionTokenType parameter. |
Set<EncryptionToken> |
getETKs(IdentifierType identifierType,
Long identifierValue,
String application)
Gets the a
Set of EncryptionToken based on the input parameters. |
static KeyDepotManager |
getInstance()
Gets the single instance of ETKCacheManager.
|
void |
setKeyDepotService(KeyDepotService service)
Method to override the
KeyDepotService used by the manager. |
public static KeyDepotManager getInstance()
public EncryptionToken getETK(KeyDepotManager.EncryptionTokenType type) throws TechnicalConnectorException
KeyDepotManager
EncryptionToken
linked with the given EncryptionTokenType parameter.getETK
in interface KeyDepotManager
TechnicalConnectorException
public EncryptionToken getETK(IdentifierType identifierType, Long identifierValue, String application) throws TechnicalConnectorException
KeyDepotManager
EncryptionToken
based on the input parametersgetETK
in interface KeyDepotManager
TechnicalConnectorException
public Set<EncryptionToken> getETKs(IdentifierType identifierType, Long identifierValue, String application) throws TechnicalConnectorException
KeyDepotManager
Set
of EncryptionToken
based on the input parameters.getETKs
in interface KeyDepotManager
TechnicalConnectorException
public void setKeyDepotService(KeyDepotService service)
KeyDepotManager
KeyDepotService
used by the manager.
Default: ServiceFactory.getKeyDepotService()
setKeyDepotService
in interface KeyDepotManager
public void flushCache()
SessionServiceWithCache
flushCache
in interface SessionServiceWithCache
Connector Packaging TECHNICAL 4.4.0 API
Copyright © {inceptionYear}-2023 eHealth. All Rights Reserved.