## Uses of Class
javax.naming.ldap.Rdn

- Packages that use Rdn
  Package | Description
  --- | ---
  javax.naming.ldap | Provides support for LDAPv3 extended operations and controls.

- - ### Uses of Rdn in javax.naming.ldap

    Methods in javax.naming.ldap that return Rdn
    Modifier and Type | Method | Description
    --- | --- | ---
    `Rdn` | LdapName.`getRdn(int posn)` Retrieves an RDN of this LDAP name as an Rdn.

    Methods in javax.naming.ldap that return types with arguments of type Rdn
    Modifier and Type | Method | Description
    --- | --- | ---
    `List<Rdn>` | LdapName.`getRdns()` Retrieves the list of relative distinguished names.

    Methods in javax.naming.ldap with parameters of type Rdn
    Modifier and Type | Method | Description
    --- | --- | ---
    `Name` | LdapName.`add(int posn, Rdn comp)` Adds a single RDN at a specified position within this LDAP name.
    `Name` | LdapName.`add(Rdn comp)` Adds a single RDN to the end of this LDAP name.

    Method parameters in javax.naming.ldap with type arguments of type Rdn
    Modifier and Type | Method | Description
    --- | --- | ---
    `Name` | LdapName.`addAll(int posn, List<Rdn> suffixRdns)` Adds the RDNs of a name -- in order -- at a specified position within this name.
    `Name` | LdapName.`addAll(List<Rdn> suffixRdns)` Adds the RDNs of a name -- in order -- to the end of this name.
    `boolean` | LdapName.`endsWith(List<Rdn> rdns)` Determines whether the specified RDN sequence forms a suffix of this LDAP name.
    `boolean` | LdapName.`startsWith(List<Rdn> rdns)` Determines whether the specified RDN sequence forms a prefix of this LDAP name.

    Constructors in javax.naming.ldap with parameters of type Rdn
    Constructor | Description
    --- | ---
    `Rdn(Rdn rdn)` Constructs an Rdn from the given `rdn`.

    Constructor parameters in javax.naming.ldap with type arguments of type Rdn
    Constructor | Description
    --- | ---
    `LdapName(List<Rdn> rdns)` Constructs an LDAP name given its parsed RDN components.

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.