Uses of Class
org.forgerock.opendj.ldap.DN

Packages that use DN
Package
Description
Classes and interfaces for core types including connections, entries, and attributes.
Classes and interfaces for common LDAP controls.
Classes and interfaces for core LDAP requests.
Classes and interfaces for core LDAP responses.
Classes and interfaces for constructing and querying LDAP schemas.
Classes and interfaces for reading and writing LDIF.
An LDAP based security provider having the name "OpenDJ" and exposing an LDAP/LDIF based KeyStore service.
  • Uses of DN in org.forgerock.opendj.ldap

    Methods in org.forgerock.opendj.ldap that return DN
    Modifier and Type
    Method
    Description
    AttributeParser.asDN()
    Returns the first value decoded as a DN using the schema associated with this parser, or null if the attribute does not contain any values.
    AttributeParser.asDN(String defaultValue)
    Returns the first value decoded as a DN using the schema associated with this parser, or defaultValue if the attribute does not contain any values.
    AttributeParser.asDN(DN defaultValue)
    Returns the first value decoded as a DN using the schema associated with this parser, or defaultValue if the attribute does not contain any values.
    DN.child(String dn)
    Returns a DN which is subordinate to this DN and having the additional RDN components contained in the provided DN decoded using the default schema.
    DN.child(String attributeType, Object attributeValue)
    Returns a DN which is an immediate child of this DN and with an RDN having the provided attribute type and value decoded using the default schema.
    DN.child(DN dn)
    Returns a DN which is subordinate to this DN and having the additional RDN components contained in the provided DN.
    DN.child(RDN rdn)
    Returns a DN which is an immediate child of this DN and having the specified RDN.
    static DN
    DN.format(String template, Object... attributeValues)
    Creates a new DN using the provided DN template and unescaped attribute values using the default schema.
    static DN
    DN.format(String template, Schema schema, Object... attributeValues)
    Creates a new DN using the provided DN template and unescaped attribute values using the provided schema.
    Entry.getName()
    Returns the string representation of the distinguished name of this entry.
    LDAPUrl.getName()
    Returns the distinguished name of the base entry relative to which the search is to be performed.
    Returns a string which represents the DN of the subschema subentry holding the schema controlling the Root DSE.
    DN.localName(int index)
    Returns the DN whose content is the specified number of RDNs from this DN.
    DN.parent()
    Returns the DN which is the immediate parent of this DN, or null if this DN is the Root DN.
    DN.parent(int index)
    Returns the DN which is equal to this DN with the specified number of RDNs removed.
    DN.rename(DN fromDN, DN toDN)
    Returns a copy of this DN whose parent DN, fromDN, has been renamed to the new parent DN, toDN.
    static DN
    DN.rootDN()
    Returns the Root DN.
    static DN
    DN.valueOf(String dn)
    Parses the provided LDAP string representation of a DN using the default schema.
    static DN
    DN.valueOf(String dn, Schema schema)
    Parses the provided LDAP string representation of a DN using the provided schema.
    static DN
    Parses the provided LDAP string representation of a DN using the default schema.
    Methods in org.forgerock.opendj.ldap that return types with arguments of type DN
    Modifier and Type
    Method
    Description
    AttributeParser.asSetOfDN()
    Returns the values decoded as a set of DNs using the schema associated with this parser, or an empty set if the attribute does not contain any values.
    AttributeParser.asSetOfDN(String... defaultValues)
    Returns the values decoded as a set of DNs using the schema associated with this parser, or defaultValues if the attribute does not contain any values.
    AttributeParser.asSetOfDN(Collection<DN> defaultValues)
    Returns the values decoded as a set of DNs using the schema associated with this parser, or defaultValues if the attribute does not contain any values.
    AttributeParser.asSetOfDN(DN... defaultValues)
    Returns the values decoded as a set of DNs using the schema associated with this parser, or defaultValues if the attribute does not contain any values.
    static org.forgerock.util.Function<ByteString,DN,org.forgerock.i18n.LocalizedIllegalArgumentException>
    Functions.byteStringToDN()
    Returns a function which parses DNs using the default schema.
    static org.forgerock.util.Function<ByteString,DN,org.forgerock.i18n.LocalizedIllegalArgumentException>
    Functions.byteStringToDN(Schema schema)
    Returns a function which parses DNs using the provided schema.
    Returns an unmodifiable list of DNs identifying the context prefixes of the naming contexts that the Directory Server masters or shadows (in part or in whole).
    static org.forgerock.util.Function<String,DN,org.forgerock.i18n.LocalizedIllegalArgumentException>
    Functions.stringToDN()
    Returns a function which parses DNs using the default schema.
    static org.forgerock.util.Function<String,DN,org.forgerock.i18n.LocalizedIllegalArgumentException>
    Functions.stringToDN(Schema schema)
    Returns a function which parses DNs using the provided schema.
    Methods in org.forgerock.opendj.ldap with parameters of type DN
    Modifier and Type
    Method
    Description
    AttributeParser.asDN(DN defaultValue)
    Returns the first value decoded as a DN using the schema associated with this parser, or defaultValue if the attribute does not contain any values.
    AttributeParser.asSetOfDN(DN... defaultValues)
    Returns the values decoded as a set of DNs using the schema associated with this parser, or defaultValues if the attribute does not contain any values.
    DN.child(DN dn)
    Returns a DN which is subordinate to this DN and having the additional RDN components contained in the provided DN.
    int
    DN.compareTo(DN dn)
     
    boolean
    MemoryBackend.contains(DN dn)
    Returns true if the named entry exists in this memory backend.
    MemoryBackend.get(DN dn)
    Returns the named entry contained in this memory backend, or null if it does not exist.
    boolean
    MemoryBackend.hasSubordinates(DN dn)
    Returns true if the named entry exists and has at least one child entry.
    boolean
    DN.isChildOf(DN dn)
    Returns true if this DN is an immediate child of the provided DN.
    boolean
    DN.isInScopeOf(DN dn, SearchScope scope)
    Returns true if this DN matches the provided base DN and search scope.
    boolean
    DN.isParentOf(DN dn)
    Returns true if this DN is the immediate parent of the provided DN.
    boolean
    Returns true if this DN is subordinate to or equal to the provided DN.
    boolean
    Returns true if this DN is superior to or equal to the provided DN.
    EntryFactory.newEntry(DN name)
    Creates an empty entry using the provided distinguished name and no attributes.
    Connections.newFixedSizeDistributionLoadBalancer(DN partitionBaseDN, ConsistentHashMap<? extends ConnectionFactory> partitions, org.forgerock.util.Options options)
    Creates a distribution load balancer which uses consistent hashing to distributes requests across a set of partitions based on a hash of each request's target DN.
    int
    MemoryBackend.numSubordinates(DN dn)
    Returns the number of entries which are immediately subordinate to the named entry, or 0 if the named entry does not exist.
    AbstractConnection.readEntry(DN baseObject, String... attributeDescriptions)
     
    AbstractConnectionWrapper.readEntry(DN name, String... attributeDescriptions)
    Reads the named entry from the Directory Server.
    Connection.readEntry(DN name, String... attributeDescriptions)
    Reads the named entry from the Directory Server.
    AbstractConnection.readEntryAsync(DN name, Collection<String> attributeDescriptions)
     
    AbstractConnectionWrapper.readEntryAsync(DN name, Collection<String> attributeDescriptions)
    Asynchronously reads the named entry from the Directory Server.
    Connection.readEntryAsync(DN name, Collection<String> attributeDescriptions)
    Asynchronously reads the named entry from the Directory Server.
    DN.rename(DN fromDN, DN toDN)
    Returns a copy of this DN whose parent DN, fromDN, has been renamed to the new parent DN, toDN.
    Entry.setName(DN dn)
    Sets the distinguished name of this entry (optional operation).
    Method parameters in org.forgerock.opendj.ldap with type arguments of type DN
    Modifier and Type
    Method
    Description
    AttributeParser.asSetOfDN(Collection<DN> defaultValues)
    Returns the values decoded as a set of DNs using the schema associated with this parser, or defaultValues if the attribute does not contain any values.
    Constructors in org.forgerock.opendj.ldap with parameters of type DN
    Modifier
    Constructor
    Description
     
    LDAPUrl(boolean isSecured, String host, Integer port, DN name)
    Creates a new LDAP URL referring to a single entry on the specified server.
     
    LDAPUrl(boolean isSecured, String host, Integer port, DN name, SearchScope scope, Filter filter, String... attributes)
    Creates a new LDAP URL including the full set of parameters for a search request.
     
    Creates an empty entry using the provided distinguished name and no attributes.
     
    Creates an empty entry using the provided distinguished name and no attributes.
  • Uses of DN in org.forgerock.opendj.ldap.controls

    Methods in org.forgerock.opendj.ldap.controls that return DN
    Modifier and Type
    Method
    Description
    ProxiedAuthV1RequestControl.getAuthorizationDNName()
    Returns the distinguished name of the user whose authorization is to be used when performing the operation.
    GetEffectiveRightsRequestControl.getAuthorizationName()
    Returns the distinguished name of the user for which effective rights are to be returned, or null if the client's authentication ID is to be used.
    EntryChangeNotificationResponseControl.getPreviousName()
    Returns the distinguished name that the entry had prior to a modify DN operation, or null if the operation was not a modify DN.
    Methods in org.forgerock.opendj.ldap.controls with parameters of type DN
    Modifier and Type
    Method
    Description
    EntryChangeNotificationResponseControl.newControl(PersistentSearchChangeType type, DN previousName, long changeNumber)
    Creates a new entry change notification response control with the provided change type and optional previous distinguished name and change number.
    GetEffectiveRightsRequestControl.newControl(boolean isCritical, DN authorizationName, Collection<AttributeType> attributes)
    Creates a new get effective rights request control with the provided criticality, optional authorization name and attribute list.
    ProxiedAuthV1RequestControl.newControl(DN authorizationName)
    Creates a new proxy authorization v1 request control with the provided authorization name.
  • Uses of DN in org.forgerock.opendj.ldap.requests

    Methods in org.forgerock.opendj.ldap.requests that return DN
    Modifier and Type
    Method
    Description
    AddRequest.getName()
     
    CompareRequest.getName()
    Returns the distinguished name of the entry to be compared.
    DeleteRequest.getName()
    Returns the distinguished name of the entry to be deleted.
    ModifyDNRequest.getName()
    Returns the distinguished name of the entry to be renamed.
    ModifyRequest.getName()
    Returns the distinguished name of the entry to be modified.
    SearchRequest.getName()
    Returns the distinguished name of the base entry relative to which the search is to be performed.
    ModifyDNRequest.getNewSuperior()
    Returns the distinguished name of an existing entry that will become the immediate superior (parent) of the entry to be renamed.
    Methods in org.forgerock.opendj.ldap.requests with parameters of type DN
    Modifier and Type
    Method
    Description
    static AddRequest
    Requests.newAddRequest(DN name)
    Creates a new add request using the provided distinguished name.
    Requests.newCompareRequest(DN name, AttributeDescription attributeDescription, Object assertionValue)
    Creates a new compare request using the provided distinguished name, attribute name, and assertion value.
    Requests.newDeleteRequest(DN name)
    Creates a new delete request using the provided distinguished name.
    Requests.newModifyDNRequest(DN name, RDN newRDN)
    Creates a new modify DN request using the provided distinguished name and new RDN.
    Requests.newModifyRequest(DN name)
    Creates a new modify request using the provided distinguished name.
    Requests.newSearchRequest(DN name, SearchScope scope, Filter filter, String... attributeDescriptions)
    Creates a new search request using the provided distinguished name, scope, and filter.
    Requests.newSingleEntrySearchRequest(DN name, SearchScope scope, Filter filter, String... attributeDescriptions)
    Creates a new search request for a single entry, using the provided distinguished name, scope, and filter.
    AddRequest.setName(DN dn)
     
    CompareRequest.setName(DN dn)
    Sets the distinguished name of the entry to be compared.
    DeleteRequest.setName(DN dn)
    Sets the distinguished name of the entry to be deleted.
    ModifyDNRequest.setName(DN dn)
    Sets the distinguished name of the entry to be renamed.
    ModifyRequest.setName(DN dn)
    Sets the distinguished name of the entry to be modified.
    SearchRequest.setName(DN dn)
    Sets the distinguished name of the base entry relative to which the search is to be performed.
    ModifyDNRequest.setNewSuperior(DN dn)
    Sets the distinguished name of an existing entry that will become the immediate superior (parent) of the entry to be renamed.
  • Uses of DN in org.forgerock.opendj.ldap.responses

    Modifier and Type
    Method
    Description
    SearchResultEntry.getName()
     
    Methods in org.forgerock.opendj.ldap.responses with parameters of type DN
    Modifier and Type
    Method
    Description
    Responses.newSearchResultEntry(DN name)
    Creates a new search result entry using the provided distinguished name.
    SearchResultEntry.setName(DN dn)
     
  • Uses of DN in org.forgerock.opendj.ldap.schema

    Methods in org.forgerock.opendj.ldap.schema with parameters of type DN
    Modifier and Type
    Method
    Description
    SchemaBuilder.addSchema(Connection connection, DN name, boolean overwrite)
    Reads the schema elements contained in the named subschema sub-entry and adds them to this schema builder.
    SchemaBuilder.addSchemaAsync(Connection connection, DN name, boolean overwrite)
    Asynchronously reads the schema elements contained in the named subschema sub-entry and adds them to this schema builder.
    SchemaBuilder.addSchemaForEntry(Connection connection, DN name, boolean overwrite)
    Reads the schema elements contained in the subschema sub-entry which applies to the named entry and adds them to this schema builder.
    SchemaBuilder.addSchemaForEntryAsync(Connection connection, DN name, boolean overwrite)
    Asynchronously reads the schema elements contained in the subschema sub-entry which applies to the named entry and adds them to this schema builder.
    SchemaValidationPolicy.EntryResolver.getEntry(DN dn)
    Returns the named entry in order to enforce DIT structure rules.
    static Schema
    Schema.readSchema(Connection connection, DN name)
    Reads the schema contained in the named subschema sub-entry.
    Schema.readSchemaAsync(Connection connection, DN name)
    Asynchronously reads the schema contained in the named subschema sub-entry.
    static Schema
    Schema.readSchemaForEntry(Connection connection, DN name)
    Reads the schema contained in the subschema sub-entry which applies to the named entry.
    Schema.readSchemaForEntryAsync(Connection connection, DN name)
    Asynchronously reads the schema contained in the subschema sub-entry which applies to the named entry.
  • Uses of DN in org.forgerock.opendj.ldif

    Methods in org.forgerock.opendj.ldif that return DN
    Modifier and Type
    Method
    Description
    ChangeRecord.getName()
    Returns the distinguished name of the entry being modified by this ChangeRecord.
    Methods in org.forgerock.opendj.ldif with parameters of type DN
    Modifier and Type
    Method
    Description
    LDIFChangeRecordReader.setExcludeBranch(DN excludeBranch)
    Excludes all change records which target entries beneath the named entry (inclusive) from being read from LDIF.
    LDIFChangeRecordWriter.setExcludeBranch(DN excludeBranch)
    Excludes all change records which target entries beneath the named entry (inclusive) from being written to LDIF.
    LDIFEntryReader.setExcludeBranch(DN excludeBranch)
    Excludes all entries beneath the named entry (inclusive) from being read from LDIF.
    LDIFEntryWriter.setExcludeBranch(DN excludeBranch)
    Excludes all entries beneath the named entry (inclusive) from being written to LDIF.
    LDIFChangeRecordReader.setIncludeBranch(DN includeBranch)
    Ensures that all change records which target entries beneath the named entry (inclusive) are read from LDIF.
    LDIFChangeRecordWriter.setIncludeBranch(DN includeBranch)
    Ensures that all change records which target entries beneath the named entry (inclusive) are written to LDIF.
    LDIFEntryReader.setIncludeBranch(DN includeBranch)
    Ensures that all entries beneath the named entry (inclusive) are read from LDIF.
    LDIFEntryWriter.setIncludeBranch(DN includeBranch)
    Ensures that all entries beneath the named entry (inclusive) are written to LDIF.
  • Uses of DN in org.forgerock.opendj.security

    Methods in org.forgerock.opendj.security with parameters of type DN
    Modifier and Type
    Method
    Description
    KeyStoreParameters.newKeyStoreParameters(ConnectionFactory factory, DN baseDN)
    Creates a set of LDAP key store parameters with default options.
    KeyStoreParameters.newKeyStoreParameters(ConnectionFactory factory, DN baseDN, org.forgerock.util.Options options)
    Creates a set of LDAP key store parameters with custom options.
    static KeyStore
    OpenDJProvider.newLDAPKeyStore(ConnectionFactory factory, DN baseDN)
    Creates a new LDAP key store with default options.
    static KeyStore
    OpenDJProvider.newLDAPKeyStore(ConnectionFactory factory, DN baseDN, org.forgerock.util.Options options)
    Creates a new LDAP key store with custom options.
    static KeyStore
    OpenDJProvider.newLDIFKeyStore(File ldifFile, DN baseDN)
    Creates a new LDIF based key store which will read and write key store objects to the provided key store file.
    static KeyStore
    OpenDJProvider.newLDIFKeyStore(File ldifFile, DN baseDN, org.forgerock.util.Options options)
    Creates a new LDIF based key store which will read and write key store objects to the provided key store file.