Package com.unboundid.ldap.sdk.persist
Class DefaultOIDAllocator
java.lang.Object
com.unboundid.ldap.sdk.persist.OIDAllocator
com.unboundid.ldap.sdk.persist.DefaultOIDAllocator
- All Implemented Interfaces:
Serializable
@NotMutable
@ThreadSafety(level=COMPLETELY_THREADSAFE)
public final class DefaultOIDAllocator
extends OIDAllocator
This class provides an OID allocator implementation that will generate OIDs
which are equal to the lowercase name of the associated attribute type or
object class followed by "-oid". This will not result in an OID that is
technically valid, but is accepted by several directory servers.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionAllocates an OID for the attribute type with the specified name.allocateObjectClassOID(String name) Allocates an OID for the object class with the specified name.static DefaultOIDAllocatorRetrieves the singleton instance of this OID allocator.
-
Method Details
-
getInstance
Retrieves the singleton instance of this OID allocator.- Returns:
- The singleton instance of this OID allocator.
-
allocateAttributeTypeOID
Allocates an OID for the attribute type with the specified name.- Specified by:
allocateAttributeTypeOIDin classOIDAllocator- Parameters:
name- The name of the attribute type for which to generate an OID. It must not benullor empty.- Returns:
- The OID to use for the attribute type definition.
-
allocateObjectClassOID
Allocates an OID for the object class with the specified name.- Specified by:
allocateObjectClassOIDin classOIDAllocator- Parameters:
name- The name of the object class for which to generate an OID. It must not benullor empty.- Returns:
- The OID to use for the object class definition.
-