Class LdifAnonymizer


  • public class LdifAnonymizer
    extends Object
    Anonymize the content of a LDIF file. We will replace the values of the defined attributes with random chars. There are a default list of attributes that are going to be anonymized :
    • userPassword
    • displayName
    • givenName
    • surName
    • homePhone
    • homePostalAddress
    • jpegPhoto
    • labeledURI
    • mail
    • manager
    • mobile
    • organizationName
    • pager
    • photo
    • secretary
    • uid
    • userCertificate
    • userPKCS12
    • userSMIMECertificate
    • x500UniqueIdentifier
    • carLicense
    • host
    • locality
    • organizationName
    • organizationalUnitName
    • seelAlso
    • homeDirectory
    • uidNumber
    • gidNumber
    • commonName
    • gecos
    • description
    • memberUid
    Author:
    Apache Directory Project
    • Constructor Detail

      • LdifAnonymizer

        public LdifAnonymizer()
        Creates a default instance of LdifAnonymizer. The list of anonymized attribute is set to a default value.
      • LdifAnonymizer

        public LdifAnonymizer​(SchemaManager schemaManager)
        Creates a default instance of LdifAnonymizer. The list of anonymized attribute is set to a default value.
        Parameters:
        schemaManager - The SchemaManager instance we will use