Class 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
    • 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 entsprechenden DataCollectionPoint
        certificate.stateCode = Die String-Repräsentation des entsprechenden StateCode
        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
        Parameters:
        registrationDir - Path
        certificateIdentity - CertificateIdentity
        password - String
        Throws:
        org.iqtig.pseudonymisierung.exception.PseudonymisationException - im Fehlerfall
      • 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
        Parameters:
        dataCollectionPoint - DataCollectionPoint
        stateCode - StateCode
        registrationDir - Path Das Registrierungsverzeichnis
        password - String Das Passwort mit dem die Zertifikate verschlüsselt werden.
        Throws:
        org.iqtig.pseudonymisierung.exception.PseudonymisationException - im Fehlerfall
      • 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 einen DataCollectionPoint repräsentiert
        stateCode - String welcher einen StateCode repräsentiert
        registrationDir - Path Das Registrierungsverzeichnis
        password - 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 interface org.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 interface org.iqtig.pseudonymisierung.api.StringDepseudonymisator
        Throws:
        org.iqtig.pseudonymisierung.exception.PseudonymisationException
      • decrypt

        public List<String> decrypt​(List<String> pseudonymes)
                             throws org.iqtig.pseudonymisierung.exception.PseudonymisationException
        Specified by:
        decrypt in interface org.iqtig.pseudonymisierung.api.StringDepseudonymisator
        Throws:
        org.iqtig.pseudonymisierung.exception.PseudonymisationException