Package org.iqtig.pseudonymisierung.impl
Class StringDepseudonymisatorImpl
- java.lang.Object
-
- org.iqtig.pseudonymisierung.impl.AbstractTool
-
- org.iqtig.pseudonymisierung.impl.AbstractDepseudonymisationTool
-
- org.iqtig.pseudonymisierung.impl.StringDepseudonymisatorImpl
-
- All Implemented Interfaces:
org.iqtig.pseudonymisierung.api.StringDepseudonymisator
public class StringDepseudonymisatorImpl extends AbstractDepseudonymisationTool implements org.iqtig.pseudonymisierung.api.StringDepseudonymisator
- Author:
- Klaus Buchwald, Michael Buckendahl
- See Also:
StringDepseudonymisator
-
-
Field Summary
-
Fields inherited from class org.iqtig.pseudonymisierung.impl.AbstractDepseudonymisationTool
certificateStore, privateKey, publicKey
-
-
Constructor Summary
Constructors Constructor Description StringDepseudonymisatorImpl(Path registrationDir, String dataCollectionPoint, String stateCode, String password)
Erzeugt eine Instanz zur Depseudonymisierung von StringsStringDepseudonymisatorImpl(Path registrationDir, org.iqtig.pseudonymisierung.beans.CertificateIdentity certificateIdentity, String password)
Erzeugt eine Instanz zur Depseudonymisierung von StringsStringDepseudonymisatorImpl(Path registrationDir, org.iqtig.pseudonymisierung.enums.DataCollectionPoint dataCollectionPoint, org.iqtig.pseudonymisierung.enums.StateCode stateCode, String password)
Erzeugt eine Instanz zur Depseudonymisierung von StringsStringDepseudonymisatorImpl(Properties properties)
Erzeugt eine Instanz zur Depseudonymisierung von Strings
Die Übergebenen Properties müssen folgende Schüssel-Wert-Paare enthalten:
certificate.datacollectionpoint = Die String-Repräsentation des entsprechendenDataCollectionPoint
certificate.stateCode = Die String-Repräsentation des entsprechendenStateCode
registration.dir = Das Schlüssel-Registrierungsverzeichnis
certificate.password = Das Passwort der Zertifikate mit den privaten Schlüsseln
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
decrypt(String pseudonym)
List<String>
decrypt(List<String> pseudonymes)
String
decryptInternal(String pseudonym)
-
Methods inherited from class org.iqtig.pseudonymisierung.impl.AbstractTool
validateProperties, validatePropertiesOr
-
-
-
-
Constructor Detail
-
StringDepseudonymisatorImpl
public StringDepseudonymisatorImpl(Properties properties) throws org.iqtig.pseudonymisierung.exception.PseudonymisationException
Erzeugt eine Instanz zur Depseudonymisierung von Strings
Die Übergebenen Properties müssen folgende Schüssel-Wert-Paare enthalten:
certificate.datacollectionpoint = Die String-Repräsentation des entsprechendenDataCollectionPoint
certificate.stateCode = Die String-Repräsentation des entsprechendenStateCode
registration.dir = Das Schlüssel-Registrierungsverzeichnis
certificate.password = Das Passwort der Zertifikate mit den privaten Schlüsseln- Parameters:
properties
-Properties
- Throws:
org.iqtig.pseudonymisierung.exception.PseudonymisationException
- im Fehlerfall
-
StringDepseudonymisatorImpl
public StringDepseudonymisatorImpl(Path registrationDir, org.iqtig.pseudonymisierung.beans.CertificateIdentity certificateIdentity, String password) throws org.iqtig.pseudonymisierung.exception.PseudonymisationException
Erzeugt eine Instanz zur Depseudonymisierung von Strings
-
StringDepseudonymisatorImpl
public StringDepseudonymisatorImpl(Path registrationDir, org.iqtig.pseudonymisierung.enums.DataCollectionPoint dataCollectionPoint, org.iqtig.pseudonymisierung.enums.StateCode stateCode, String password) throws org.iqtig.pseudonymisierung.exception.PseudonymisationException
Erzeugt eine Instanz zur Depseudonymisierung von Strings
-
StringDepseudonymisatorImpl
public StringDepseudonymisatorImpl(Path registrationDir, String dataCollectionPoint, String stateCode, String password) throws org.iqtig.pseudonymisierung.exception.PseudonymisationException
Erzeugt eine Instanz zur Depseudonymisierung von Strings- Parameters:
dataCollectionPoint
-String
welcher einenDataCollectionPoint
repräsentiertstateCode
-String
welcher einenStateCode
repräsentiertregistrationDir
-Path
Das Registrierungsverzeichnispassword
-String
Das Passwort mit dem die Zertifikate verschlüsselt werden.- Throws:
org.iqtig.pseudonymisierung.exception.PseudonymisationException
- im Fehlerfall
-
-
Method Detail
-
decrypt
public String decrypt(String pseudonym) throws org.iqtig.pseudonymisierung.exception.PseudonymisationException
- Specified by:
decrypt
in interfaceorg.iqtig.pseudonymisierung.api.StringDepseudonymisator
- Throws:
org.iqtig.pseudonymisierung.exception.PseudonymisationException
-
decryptInternal
public String decryptInternal(String pseudonym) throws org.iqtig.pseudonymisierung.exception.PseudonymisationException
- Specified by:
decryptInternal
in interfaceorg.iqtig.pseudonymisierung.api.StringDepseudonymisator
- Throws:
org.iqtig.pseudonymisierung.exception.PseudonymisationException
-
-