Class DnUtils

java.lang.Object
org.apache.directory.api.ldap.model.name.DnUtils

public final class DnUtils extends Object
Utility class used to manipulate Dn or Rdn elements.
Author:
Apache Directory Project
  • Method Details

    • getRdnAttributeType

      public static String getRdnAttributeType(String rdn)
      Gets the attributeType of a RDN (the left part of the RDN). The RDN is supposed to contain only one AVA.
      Parameters:
      rdn - the RDN
      Returns:
      the attributeType
    • getRdnValue

      public static String getRdnValue(String rdn)
      Gets the value of a RDN ( the right part of the RDN). The RDN is supposed to contain only one AVA.
      Parameters:
      rdn - the RDN
      Returns:
      the value of tpart of the RDN