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

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

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

DN.getRDNs介绍

[英]Retrieves the set of RDNs that comprise this DN.
[中]检索组成此DN的RDN集。

代码示例

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

  1. /**
  2. * Creates a new move subtree transformation with the provided information.
  3. *
  4. * @param sourceDN The source base DN to be replaced with the target base
  5. * DN. It must not be {@code null}.
  6. * @param targetDN The target base DN to use to replace the source base DN.
  7. * It must not be {@code null}.
  8. */
  9. public MoveSubtreeTransformation(final DN sourceDN, final DN targetDN)
  10. {
  11. this.sourceDN = sourceDN;
  12. targetRDNs = Arrays.asList(targetDN.getRDNs());
  13. }

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

  1. @Override
  2. public List<ILdapRdn> getRdns() {
  3. if (cache == null) {
  4. cache = new ArrayList<>(dn.getRDNs().length);
  5. for (RDN rdn : dn.getRDNs()) {
  6. cache.add(new DefaultLdapRdn(rdn));
  7. }
  8. }
  9. return cache;
  10. }
  11. }

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

  1. @Override
  2. public List<ILdapRdn> getRdns() {
  3. if (cache == null) {
  4. cache = new ArrayList<>(dn.getRDNs().length);
  5. for (RDN rdn : dn.getRDNs()) {
  6. cache.add(new DefaultLdapRdn(rdn));
  7. }
  8. }
  9. return cache;
  10. }
  11. }

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

  1. /**
  2. * Creates a new instance of this translator.
  3. *
  4. * @param splitBaseDN The base DN below which entries are to be split. It
  5. * must not be {@code null}.
  6. */
  7. SplitLDIFTranslator(final DN splitBaseDN)
  8. {
  9. this.splitBaseDN = splitBaseDN;
  10. splitBaseRDNs = splitBaseDN.getRDNs();
  11. errorSetNames = Collections.singleton(SplitLDIFEntry.SET_NAME_ERRORS);
  12. ldifBuffers = new ThreadLocal<ByteStringBuffer>();
  13. messageDigests = new ThreadLocal<MessageDigest>();
  14. }

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

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

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

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

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

  1. final RDN[] originalRDNs = dn.getRDNs();
  2. final RDN[] sourceRDNs = sourceDN.getRDNs();
  3. final ArrayList<RDN> newRDNs = new ArrayList<RDN>(2*originalRDNs.length);
  4. final int numComponentsToKeep = originalRDNs.length - sourceRDNs.length;

代码示例来源:origin: com.redhat.lightblue.rest/lightblue-rest-auth

  1. if(null != groups) {
  2. for(String group : groups) {
  3. for (RDN rdn : new DN(group).getRDNs()) {
  4. if (rdn.hasAttribute("cn")) {
  5. roles.addAll(Arrays.asList(rdn.getAttributeValues()));

代码示例来源:origin: org.esbtools.auth/cert-ldap-login-module-common

  1. if(null != groups) {
  2. for(String group : groups) {
  3. for (RDN rdn : new DN(group).getRDNs()) {
  4. if (rdn.hasAttribute("cn")) {
  5. roles.addAll(Arrays.asList(rdn.getAttributeValues()));

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

  1. final RDN[] rdns = new DN(dn).getRDNs();
  2. final String[] rdnStrings = new String[rdns.length];
  3. for (int i=0; i < rdns.length; i++)

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

  1. for (final RDN rdn : dn.getRDNs())

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

  1. this.excludeFilter = excludeFilter;
  2. flattenBaseRDNs = flattenBaseDN.getRDNs();

代码示例来源:origin: sakaiproject/sakai

  1. DN dn = new DN(dnString);
  2. DN containerDN = dn.getParent();
  3. RDN[] containerRDNs = containerDN.getRDNs();
  4. for (RDN rdn : containerRDNs) {
  5. String mappedValue = mapRdn(rdn.toNormalizedString());

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

  1. final RDN[] originalRDNs = dn.getRDNs();
  2. final RDN[] scrambledRDNs = new RDN[originalRDNs.length];
  3. for (int i=0; i < originalRDNs.length; i++)

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

  1. final RDN[] targetRDNs = targetDN.getRDNs();
  2. final RDN[] refEntryRDNs = referralEntry.getParsedDN().getRDNs();
  3. retainRDNs = new RDN[targetRDNs.length - refEntryRDNs.length];
  4. System.arraycopy(targetRDNs, 0, retainRDNs, 0, retainRDNs.length);
  5. final RDN[] refRDNs = url.getBaseDN().getRDNs();
  6. final RDN[] newRefRDNs = new RDN[retainRDNs.length + refRDNs.length];
  7. System.arraycopy(retainRDNs, 0, newRefRDNs, 0, retainRDNs.length);

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

  1. final RDN[] entryRDNs = parsedEntryDN.getRDNs();
  2. final RDN[] baseRDNs = parsedBaseDN.getRDNs();
  3. final RDN[] remainingRDNs =
  4. new RDN[entryRDNs.length - baseRDNs.length];

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

  1. final RDN[] rdns = dn.getRDNs();
  2. final int targetRDNIndex = rdns.length - splitBaseRDNs.length - 1;
  3. final byte[] normalizedRDNBytes =

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

  1. final RDN[] originalRDNs = parsedDN.getRDNs();
  2. final RDN[] newRDNs = new RDN[originalRDNs.length];
  3. for (int i=0; i < originalRDNs.length; i++)

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

  1. final RDN[] originalRDNs = dn.getRDNs();
  2. final int numRDNsToOmit = originalRDNs.length - flattenBaseRDNs.length - 1;
  3. if (numRDNsToOmit == 0)

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

  1. final RDN[] originalRDNs = new DN(dn).getRDNs();
  2. final RDN[] newRDNs = new RDN[originalRDNs.length];
  3. for (int i=0; i < originalRDNs.length; i++)

相关文章