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 DNModifier and TypeMethodDescriptionAttributeParser.asDN()Returns the first value decoded as aDNusing the schema associated with this parser, ornullif the attribute does not contain any values.Returns the first value decoded as aDNusing the schema associated with this parser, ordefaultValueif the attribute does not contain any values.Returns the first value decoded as aDNusing the schema associated with this parser, ordefaultValueif the attribute does not contain any values.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.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.Returns a DN which is subordinate to this DN and having the additional RDN components contained in the provided DN.Returns a DN which is an immediate child of this DN and having the specified RDN.static DNCreates a new DN using the provided DN template and unescaped attribute values using the default schema.static DNCreates 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.RootDSE.getSubschemaSubentry()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, ornullif 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.Returns a copy of this DN whose parent DN,fromDN, has been renamed to the new parent DN,toDN.static DNDN.rootDN()Returns the Root DN.static DNParses the provided LDAP string representation of a DN using the default schema.static DNParses the provided LDAP string representation of a DN using the provided schema.static DNDN.valueOf(ByteString 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 DNModifier and TypeMethodDescriptionAttributeParser.asSetOfDN()Returns the values decoded as a set ofDNs using the schema associated with this parser, or an empty set if the attribute does not contain any values.Returns the values decoded as a set ofDNs using the schema associated with this parser, ordefaultValuesif the attribute does not contain any values.AttributeParser.asSetOfDN(Collection<DN> defaultValues) Returns the values decoded as a set ofDNs using the schema associated with this parser, ordefaultValuesif the attribute does not contain any values.Returns the values decoded as a set ofDNs using the schema associated with this parser, ordefaultValuesif the attribute does not contain any values.static org.forgerock.util.Function<ByteString, DN, org.forgerock.i18n.LocalizedIllegalArgumentException> Functions.byteStringToDN()Returns a function which parsesDNs using the default schema.static org.forgerock.util.Function<ByteString, DN, org.forgerock.i18n.LocalizedIllegalArgumentException> Functions.byteStringToDN(Schema schema) Returns a function which parsesDNs using the provided schema.RootDSE.getNamingContexts()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).Functions.stringToDN()Returns a function which parsesDNs using the default schema.Functions.stringToDN(Schema schema) Returns a function which parsesDNs using the provided schema.Methods in org.forgerock.opendj.ldap with parameters of type DNModifier and TypeMethodDescriptionReturns the first value decoded as aDNusing the schema associated with this parser, ordefaultValueif the attribute does not contain any values.Returns the values decoded as a set ofDNs using the schema associated with this parser, ordefaultValuesif the attribute does not contain any values.Returns a DN which is subordinate to this DN and having the additional RDN components contained in the provided DN.intbooleanReturnstrueif the named entry exists in this memory backend.Returns the named entry contained in this memory backend, ornullif it does not exist.booleanMemoryBackend.hasSubordinates(DN dn) Returnstrueif the named entry exists and has at least one child entry.booleanReturnstrueif this DN is an immediate child of the provided DN.booleanDN.isInScopeOf(DN dn, SearchScope scope) Returnstrueif this DN matches the provided base DN and search scope.booleanDN.isParentOf(DN dn) Returnstrueif this DN is the immediate parent of the provided DN.booleanDN.isSubordinateOrEqualTo(DN dn) Returnstrueif this DN is subordinate to or equal to the provided DN.booleanDN.isSuperiorOrEqualTo(DN dn) Returnstrueif this DN is superior to or equal to the provided DN.Creates an empty entry using the provided distinguished name and no attributes.static ConnectionFactoryConnections.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.intMemoryBackend.numSubordinates(DN dn) Returns the number of entries which are immediately subordinate to the named entry, or0if the named entry does not exist.Reads the named entry from the Directory Server.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.Returns a copy of this DN whose parent DN,fromDN, has been renamed to the new parent DN,toDN.Sets the distinguished name of this entry (optional operation).Method parameters in org.forgerock.opendj.ldap with type arguments of type DNModifier and TypeMethodDescriptionAttributeParser.asSetOfDN(Collection<DN> defaultValues) Returns the values decoded as a set ofDNs using the schema associated with this parser, ordefaultValuesif the attribute does not contain any values.Constructors in org.forgerock.opendj.ldap with parameters of type DNModifierConstructorDescriptionCreates 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.LinkedHashMapEntry(DN name) Creates an empty entry using the provided distinguished name and no attributes.TreeMapEntry(DN name) 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 DNModifier and TypeMethodDescriptionProxiedAuthV1RequestControl.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, ornullif 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, ornullif the operation was not a modify DN.Methods in org.forgerock.opendj.ldap.controls with parameters of type DNModifier and TypeMethodDescriptionEntryChangeNotificationResponseControl.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.static ProxiedAuthV1RequestControlProxiedAuthV1RequestControl.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 DNModifier and TypeMethodDescriptionAddRequest.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 DNModifier and TypeMethodDescriptionstatic AddRequestRequests.newAddRequest(DN name) Creates a new add request using the provided distinguished name.static CompareRequestRequests.newCompareRequest(DN name, AttributeDescription attributeDescription, Object assertionValue) Creates a new compare request using the provided distinguished name, attribute name, and assertion value.static DeleteRequestRequests.newDeleteRequest(DN name) Creates a new delete request using the provided distinguished name.static ModifyDNRequestRequests.newModifyDNRequest(DN name, RDN newRDN) Creates a new modify DN request using the provided distinguished name and new RDN.static ModifyRequestRequests.newModifyRequest(DN name) Creates a new modify request using the provided distinguished name.static SearchRequestRequests.newSearchRequest(DN name, SearchScope scope, Filter filter, String... attributeDescriptions) Creates a new search request using the provided distinguished name, scope, and filter.static SearchRequestRequests.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.Sets the distinguished name of the entry to be compared.Sets the distinguished name of the entry to be deleted.Sets the distinguished name of the entry to be renamed.Sets the distinguished name of the entry to be modified.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
Methods in org.forgerock.opendj.ldap.responses that return DNMethods in org.forgerock.opendj.ldap.responses with parameters of type DNModifier and TypeMethodDescriptionstatic SearchResultEntryResponses.newSearchResultEntry(DN name) Creates a new search result entry using the provided distinguished name. -
Uses of DN in org.forgerock.opendj.ldap.schema
Methods in org.forgerock.opendj.ldap.schema with parameters of type DNModifier and TypeMethodDescriptionSchemaBuilder.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.Returns the named entry in order to enforce DIT structure rules.static SchemaSchema.readSchema(Connection connection, DN name) Reads the schema contained in the named subschema sub-entry.static LdapPromise<Schema> Schema.readSchemaAsync(Connection connection, DN name) Asynchronously reads the schema contained in the named subschema sub-entry.static SchemaSchema.readSchemaForEntry(Connection connection, DN name) Reads the schema contained in the subschema sub-entry which applies to the named entry.static LdapPromise<Schema> 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 DNModifier and TypeMethodDescriptionChangeRecord.getName()Returns the distinguished name of the entry being modified by thisChangeRecord.Methods in org.forgerock.opendj.ldif with parameters of type DNModifier and TypeMethodDescriptionLDIFChangeRecordReader.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 DNModifier and TypeMethodDescriptionstatic KeyStoreParametersKeyStoreParameters.newKeyStoreParameters(ConnectionFactory factory, DN baseDN) Creates a set of LDAP key store parameters with default options.static KeyStoreParametersKeyStoreParameters.newKeyStoreParameters(ConnectionFactory factory, DN baseDN, org.forgerock.util.Options options) Creates a set of LDAP key store parameters with custom options.static KeyStoreOpenDJProvider.newLDAPKeyStore(ConnectionFactory factory, DN baseDN) Creates a new LDAP key store with default options.static KeyStoreOpenDJProvider.newLDAPKeyStore(ConnectionFactory factory, DN baseDN, org.forgerock.util.Options options) Creates a new LDAP key store with custom options.static KeyStoreOpenDJProvider.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 KeyStoreOpenDJProvider.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.