com.unboundid.ldap.sdk.DN.getRDNStrings()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(1.3k)|赞(0)|评价(0)|浏览(96)

本文整理了Java中com.unboundid.ldap.sdk.DN.getRDNStrings()方法的一些代码示例,展示了DN.getRDNStrings()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。DN.getRDNStrings()方法的具体详情如下:
包路径:com.unboundid.ldap.sdk.DN
类名称:DN
方法名:getRDNStrings

DN.getRDNStrings介绍

[英]Retrieves the set of string representations of the RDNs that comprise this DN.
[中]

代码示例

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition

  1. /**
  2. * Retrieves the set of string representations of the RDNs that comprise this
  3. * DN.
  4. *
  5. * @param s The string representation of the DN for which to retrieve the
  6. * RDN strings. It must not be {@code null}.
  7. *
  8. * @return The set of string representations of the RDNs that comprise this
  9. * DN.
  10. *
  11. * @throws LDAPException If the provided string cannot be parsed as a DN.
  12. */
  13. public static String[] getRDNStrings(final String s)
  14. throws LDAPException
  15. {
  16. return new DN(s).getRDNStrings();
  17. }

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-minimal-edition

  1. /**
  2. * Retrieves the set of string representations of the RDNs that comprise this
  3. * DN.
  4. *
  5. * @param s The string representation of the DN for which to retrieve the
  6. * RDN strings. It must not be {@code null}.
  7. *
  8. * @return The set of string representations of the RDNs that comprise this
  9. * DN.
  10. *
  11. * @throws LDAPException If the provided string cannot be parsed as a DN.
  12. */
  13. public static String[] getRDNStrings(final String s)
  14. throws LDAPException
  15. {
  16. return new DN(s).getRDNStrings();
  17. }

相关文章