Class PrescriberEncryptionUtils
- java.lang.Object
-
- be.business.connector.recipe.utils.PrescriberEncryptionUtils
-
public class PrescriberEncryptionUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description PrescriberEncryptionUtils(PropertyHandler propertyHandler, EncryptionUtils encryptionUtils, Map<String,be.ehealth.technicalconnector.service.kgss.domain.KeyResult> keyCache)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<CreatePrescriptionDTO>doEncryptions(List<CreatePrescriptionDTO> createPrescriptionDTOs, AbstractPrescriberIntegrationModule prescriberIntegrationModuleV4)Encrypt a list ofCreatePrescriptionDTOs.be.ehealth.technicalconnector.service.kgss.domain.KeyResultgetNewKey(String patientId, String prescriptionType)Gets the new key.protected be.ehealth.technicalconnector.service.kgss.domain.KeyResultgetNewKeyFromKgss(String patientId)
-
-
-
Constructor Detail
-
PrescriberEncryptionUtils
public PrescriberEncryptionUtils(PropertyHandler propertyHandler, EncryptionUtils encryptionUtils, Map<String,be.ehealth.technicalconnector.service.kgss.domain.KeyResult> keyCache)
-
-
Method Detail
-
doEncryptions
public List<CreatePrescriptionDTO> doEncryptions(List<CreatePrescriptionDTO> createPrescriptionDTOs, AbstractPrescriberIntegrationModule prescriberIntegrationModuleV4)
Encrypt a list ofCreatePrescriptionDTOs.- Parameters:
createPrescriptionDTOs- the list ofCreatePrescriptionDTOsprescriberIntegrationModuleV4- theAbstractPrescriberIntegrationModule- Returns:
- the encrypted
ListOpenPrescriptionsResult
-
getNewKey
public be.ehealth.technicalconnector.service.kgss.domain.KeyResult getNewKey(String patientId, String prescriptionType)
Gets the new key.- Parameters:
patientId- the patient idprescriptionType- the prescription type- Returns:
- the new key @ the integration module exception
-
getNewKeyFromKgss
protected be.ehealth.technicalconnector.service.kgss.domain.KeyResult getNewKeyFromKgss(String patientId)
-
-