public final class KeyDepotManagerImpl extends Object implements KeyDepotManager, SessionServiceWithCache
KeyDepotManager and SessionServiceWithCacheKeyDepotManager.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
KeyDepotManagerEncryptionToken linked with the given EncryptionTokenType parameter.getETK in interface KeyDepotManagerTechnicalConnectorExceptionpublic EncryptionToken getETK(IdentifierType identifierType, Long identifierValue, String application) throws TechnicalConnectorException
KeyDepotManagerEncryptionToken based on the input parametersgetETK in interface KeyDepotManagerTechnicalConnectorExceptionpublic Set<EncryptionToken> getETKs(IdentifierType identifierType, Long identifierValue, String application) throws TechnicalConnectorException
KeyDepotManagerSet of EncryptionToken based on the input parameters.getETKs in interface KeyDepotManagerTechnicalConnectorExceptionpublic void setKeyDepotService(KeyDepotService service)
KeyDepotManagerKeyDepotService used by the manager.
Default: ServiceFactory.getKeyDepotService()
setKeyDepotService in interface KeyDepotManagerpublic void flushCache()
SessionServiceWithCacheflushCache in interface SessionServiceWithCache
Connector Packaging generic 4.5.4 API
Copyright © {inceptionYear}-2024 eHealth. All Rights Reserved.