Class OIDAllocator

java.lang.Object
com.unboundid.ldap.sdk.persist.OIDAllocator
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
DefaultOIDAllocator

This class provides a mechanism that can be used for generating object identifiers (OIDs) for use in attribute type and object class definitions constructed for use in representing an object in the directory.

Note that OIDs generated are not necessarily required to be valid, nor are they required to be unique. As such, OIDs included in generated attribute type and object class definitions may need to be edited before the definitions can be added to the directory server.
See Also:
  • Constructor Details

  • Method Details

    • allocateAttributeTypeOID

      Allocates an OID for the attribute type with the specified name.
      Parameters:
      name - The name of the attribute type for which to generate an OID. It must not be null or empty.
      Returns:
      The OID to use for the attribute type definition.
    • allocateObjectClassOID

      Allocates an OID for the object class with the specified name.
      Parameters:
      name - The name of the object class for which to generate an OID. It must not be null or empty.
      Returns:
      The OID to use for the object class definition.