本文整理了Java中com.unboundid.ldap.sdk.DN.normalize()
方法的一些代码示例,展示了DN.normalize()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。DN.normalize()
方法的具体详情如下:
包路径:com.unboundid.ldap.sdk.DN
类名称:DN
方法名:normalize
[英]Retrieves a normalized representation of the DN with the provided string representation.
[中]使用提供的字符串表示形式检索DN的规范化表示形式。
代码示例来源:origin: com.unboundid/unboundid-ldapsdk-minimal-edition
/**
* Retrieves a normalized representation of the DN with the provided string
* representation.
*
* @param s The string representation of the DN to normalize. It must not
* be {@code null}.
*
* @return The normalized representation of the DN with the provided string
* representation.
*
* @throws LDAPException If the provided string cannot be parsed as a DN.
*/
public static String normalize(final String s)
throws LDAPException
{
return normalize(s, null);
}
代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition
/**
* Retrieves a normalized representation of the DN with the provided string
* representation.
*
* @param s The string representation of the DN to normalize. It must not
* be {@code null}.
*
* @return The normalized representation of the DN with the provided string
* representation.
*
* @throws LDAPException If the provided string cannot be parsed as a DN.
*/
public static String normalize(final String s)
throws LDAPException
{
return normalize(s, null);
}
代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition
/**
* Retrieves a normalized representation of the provided DN. If the provided
* string does not represent a valid distinguished name, then the value
* returned by this method will not be reliable.
*
* @param dn The string representation of the DN to be normalized.
*
* @return A normalized representation of the provided DN.
*/
public static String normalize(final String dn)
{
try
{
return DN.normalize(dn);
}
catch (Exception e)
{
debugException(e);
return toLowerCase(dn.trim());
}
}
代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition
e.addAttribute("entryDN", DN.normalize(e.getDN(), schema));
内容来源于网络,如有侵权,请联系作者删除!