Class PseudonymizationFactory

java.lang.Object
org.trustdeck.algorithms.PseudonymizationFactory

public class PseudonymizationFactory extends Object
This is a factory class for creating a pseudonymizer based on the desired algorithm.
Author:
Armin Müller
  • Constructor Details

    • PseudonymizationFactory

      public PseudonymizationFactory()
  • Method Details

    • getPseudonymizer

      public Pseudonymizer getPseudonymizer(Algorithm algorithm)
      Method for automatically creating the correct pseudonymizer depending on the desired algorithm.
      Parameters:
      algorithm - the algorithm with which the inputs should be pseudonymized
      Returns:
      the pre-configured pseudonymizer so that the pseudonymization step itself is easier to accomplish
    • getPseudonymizer

      public Pseudonymizer getPseudonymizer(Domain domain)
      Method for automatically creating the correct pseudonymizer depending on the desired algorithm.
      Parameters:
      domain - the domain under which the pseudonyms should be stored in
      Returns:
      the pre-configured pseudonymizer so that the pseudonymization step itself is easier to accomplish