Object - privacy : H2PiiStore

Represents personally identifiable information (PII) storage mechanisum based on H2 database

Constructor

__init

(Client clientEndpoint, string tableName, string idColumn, string piiColumn)

  • clientEndpoint Client
  • reference to H2 database client endpoint

  • tableName string
  • table name used to store PII

  • idColumn string
  • column name used to store pseudonymized identifier

  • piiColumn string
  • column name used to store PII

Methods

Fields

  • clientEndpoint Client
  • reference to H2 database client endpoint

  • tableName string
  • table name used to store PII

  • idColumn string
  • column name used to store pseudonymized identifier

  • piiColumn string
  • column name used to store PII

pseudonymize

(string pii)

returns string | error

Pseudonymize personally identifiable information (PII) and store PII and the pseudonymized identifier

Parameters

  • pii string
  • PII to be pseudonymized

  • Return Type

    (string | error)
  • 36 characters long UUID if storage operation was successful, error if storage operation failed

depseudonymize

(string id)

returns string | error

Depseudonymize the identifier by retrieving the personally identifiable information (PII)

Parameters

  • id string
  • pseudonymized identifier to be depseudonymize

  • Return Type

    (string | error)
  • PII if retrieval was successful, error if retrieval failed

delete

(string id)

returns error?

Delete personally identifiable information (PII)

Parameters

  • id string
  • pseudonymized identifier to be deleted

  • Return Type

    (error?)
  • nil if retrieval was successful, error if retrieval failed