Class ObjectGuidHandler

All Implemented Interfaces:
Function<LdapEntry,LdapEntry>, Freezable, LdapEntryHandler

public class ObjectGuidHandler extends AbstractBinaryAttributeHandler<LdapEntry> implements LdapEntryHandler
Processes an objectGuid attribute by converting it from binary to its string form.
  • Field Details

    • HASH_CODE_SEED

      private static final int HASH_CODE_SEED
      hash code seed.
      See Also:
    • ATTRIBUTE_NAME

      private static final String ATTRIBUTE_NAME
      objectGuid attribute name.
      See Also:
    • withBrackets

      private boolean withBrackets
      whether to enclose the guid in brackets.
  • Constructor Details

    • ObjectGuidHandler

      public ObjectGuidHandler()
      Creates a new object guid handler.
    • ObjectGuidHandler

      public ObjectGuidHandler(boolean brackets)
      Creates a new object guid handler.
      Parameters:
      brackets - whether to enclose the GUID in brackets
    • ObjectGuidHandler

      public ObjectGuidHandler(String attrName)
      Creates a new object guid handler.
      Parameters:
      attrName - name of the attribute which is encoded as an objectGUID
    • ObjectGuidHandler

      public ObjectGuidHandler(String attrName, boolean brackets)
      Creates a new object guid handler.
      Parameters:
      attrName - name of the attribute which is encoded as an objectGUID
      brackets - whether to enclose the GUID in brackets
  • Method Details