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

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

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

DN.getRDNString介绍

[英]Retrieves the string representation of the leftmost (i.e., furthest from the naming context) RDN component for this DN.
[中]检索此DN的最左侧(即距离命名上下文最远)RDN组件的字符串表示形式。

代码示例

代码示例来源:origin: apiman/apiman

  1. @Override
  2. public String getDn() {
  3. return dn.getRDNString();
  4. }

代码示例来源:origin: io.apiman/apiman-gateway-engine-core

  1. @Override
  2. public String getDn() {
  3. return dn.getRDNString();
  4. }

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

  1. /**
  2. * Retrieves the string representation of the leftmost (i.e., furthest from
  3. * the naming context) RDN component for the DN with the provided string
  4. * representation.
  5. *
  6. * @param s The string representation of the DN to process. It must not be
  7. * {@code null}.
  8. *
  9. * @return The string representation of the leftmost RDN component for this
  10. * DN, or {@code null} if this DN does not have any RDNs (i.e., it is
  11. * the null DN).
  12. *
  13. * @throws LDAPException If the provided string cannot be parsed as a DN.
  14. */
  15. public static String getRDNString(final String s)
  16. throws LDAPException
  17. {
  18. return new DN(s).getRDNString();
  19. }

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

  1. /**
  2. * Retrieves the string representation of the leftmost (i.e., furthest from
  3. * the naming context) RDN component for the DN with the provided string
  4. * representation.
  5. *
  6. * @param s The string representation of the DN to process. It must not be
  7. * {@code null}.
  8. *
  9. * @return The string representation of the leftmost RDN component for this
  10. * DN, or {@code null} if this DN does not have any RDNs (i.e., it is
  11. * the null DN).
  12. *
  13. * @throws LDAPException If the provided string cannot be parsed as a DN.
  14. */
  15. public static String getRDNString(final String s)
  16. throws LDAPException
  17. {
  18. return new DN(s).getRDNString();
  19. }

相关文章