Class ARXAnonymiser

  • All Implemented Interfaces:
    Anonymiser

    @Component
    public class ARXAnonymiser
    extends java.lang.Object
    implements Anonymiser
    Anonymizer class using the ARX library to implement the anonymization
    • Method Detail

      • anonymize

        public AnonymizeResult anonymize​(AnonymizationPayload payload)
        Description copied from interface: Anonymiser
        Method to run anonymization on data in the payload with the provided parameters in the payload
        Specified by:
        anonymize in interface Anonymiser
        Parameters:
        payload - Model object containing the data to be anonymized and params to use in anonymization
        Returns:
        AnonymizeResult result object containing the best case anonymization and statistics
      • configureAnonymizer

        private void configureAnonymizer​(org.deidentifier.arx.ARXAnonymizer anonymizer)
        Returns an ARX ARXAnonymizer objects that sets the settings for anonymizing the data set.
        Parameters:
        anonymizer - an ARX ARXAnonymizer object that will hold the anonymization settings
      • createRawDataList

        private java.util.List<java.lang.String[]> createRawDataList​(org.deidentifier.arx.ARXResult result)
        Returns a String that contains the anonymized data. This method is used to prepare the data set to be easily read and imported in the response payload.
        Parameters:
        result - an ARX ARXResult object that holds the anonymized data set.
        Returns:
        a String containing the anonymized data set.