Codota Logo
LDAPDN.escapeRDN
Code IndexAdd Codota to your IDE (free)

How to use
escapeRDN
method
in
com.novell.ldap.LDAPDN

Best Java code snippets using com.novell.ldap.LDAPDN.escapeRDN (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
DateTime d =
  • Codota Iconnew DateTime()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseDateTime(text)
  • Codota IconObject instant;new DateTime(instant)
  • Smart code suggestions by Codota
}
origin: com.novell.ldap/jldap

/**
 * Returns the RDN after escaping the characters requiring escaping.
 *
 * @see <a href="../../../../api/com/novell/ldap/LDAPDN.html#escapeRDN(java.lang.String)">
    com.novell.ldap.LDAPDN.escapeRDN(String)</a>
 */
public static String escapeRDN (String rdn)
{
  return com.novell.ldap.LDAPDN.escapeRDN(rdn);
}
origin: com.xpn.xwiki.platform/xwiki-core

/**
 * Fully escape DN value (the part after the =).
 * <p>
 * For example, for the dn value "Acme, Inc", the escapeLDAPDNValue method returns "Acme\, Inc".
 * </p>
 * 
 * @param value the DN value to escape
 * @return the escaped version o the DN value
 */
public static String escapeLDAPDNValue(String value)
{
  return LDAPDN.escapeRDN("key=" + value).substring(4);
}
origin: org.xwiki.platform/xwiki-platform-ldap-authenticator

/**
 * Fully escape DN value (the part after the =).
 * <p>
 * For example, for the dn value "Acme, Inc", the escapeLDAPDNValue method returns "Acme\, Inc".
 * </p>
 * 
 * @param value the DN value to escape
 * @return the escaped version o the DN value
 */
public static String escapeLDAPDNValue(String value)
{
  return StringUtils.isBlank(value) ? value : LDAPDN.escapeRDN("key=" + value).substring(4);
}
origin: com.novell.ldap/jldap

/**
 * Creates and returns a string that represents this DN.  The string
 * follows RFC 2253, which describes String representation of DN's and
 * RDN's
 *
 * @return A DN string.
 */
public String toString() {
  int length=rdnList.size();
  String dn = "";
  if (length < 1)
    return null;
  dn = LDAPDN.escapeRDN(rdnList.get(0).toString());
  for (int i=1; i<length; i++)
    dn += "," + LDAPDN.escapeRDN(rdnList.get(i).toString());
  return dn;
}
com.novell.ldapLDAPDNescapeRDN

Javadoc

Returns the RDN after escaping the characters requiring escaping.

For example, for the rdn "cn=Acme, Inc", the escapeRDN method returns "cn=Acme\, Inc".

escapeRDN escapes the AttributeValue by inserting '\' before the following chars: * ',' '+' '"' '\' '' ';'
'#' if it comes at the beginning of the string, and
' ' (space) if it comes at the beginning or the end of a string. Note that single-valued attributes can be used because of ambiguity. See RFC 2253

Popular methods of LDAPDN

  • isValid
    Returns true if the string conforms to distinguished name syntax.
  • equals
    Compares the two strings per the distinguishedNameMatch equality matching (using case-ignore matchin
  • explodeDN
    Returns the individual components of a distinguished name (DN).
  • explodeRDN
    Returns the individual components of a relative distinguished name (RDN), normalized.
  • normalize
    Returns the DN normalized by removal of non-significant space characters as per RFC 2253, section4.
  • unescapeRDN
    Returns the RDN after unescaping the characters requiring escaping.For example, for the rdn "cn=Acme

Popular in Java

  • Creating JSON documents from java classes using gson
  • findViewById (Activity)
  • orElseThrow (Optional)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • PrintWriter (java.io)
    Prints formatted representations of objects to a text-output stream. This class implements all of th
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • LogFactory (org.apache.commons.logging)
    A minimal incarnation of Apache Commons Logging's LogFactory API, providing just the common Log look
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now