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

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

本文整理了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

/**
 * Creates a new move subtree transformation with the provided information.
 *
 * @param  sourceDN  The source base DN to be replaced with the target base
 *                   DN.  It must not be {@code null}.
 * @param  targetDN  The target base DN to use to replace the source base DN.
 *                   It must not be {@code null}.
 */
public MoveSubtreeTransformation(final DN sourceDN, final DN targetDN)
{
 this.sourceDN = sourceDN;
 targetRDNs = Arrays.asList(targetDN.getRDNs());
}

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

@Override
  public List<ILdapRdn> getRdns() {
    if (cache == null) {
      cache = new ArrayList<>(dn.getRDNs().length);
      for (RDN rdn : dn.getRDNs()) {
        cache.add(new DefaultLdapRdn(rdn));
      }
    }
    return cache;
  }
}

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

@Override
  public List<ILdapRdn> getRdns() {
    if (cache == null) {
      cache = new ArrayList<>(dn.getRDNs().length);
      for (RDN rdn : dn.getRDNs()) {
        cache.add(new DefaultLdapRdn(rdn));
      }
    }
    return cache;
  }
}

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

/**
 * Creates a new instance of this translator.
 *
 * @param  splitBaseDN  The base DN below which entries are to be split.  It
 *                      must not be {@code null}.
 */
SplitLDIFTranslator(final DN splitBaseDN)
{
 this.splitBaseDN = splitBaseDN;
 splitBaseRDNs = splitBaseDN.getRDNs();
 errorSetNames = Collections.singleton(SplitLDIFEntry.SET_NAME_ERRORS);
 ldifBuffers = new ThreadLocal<ByteStringBuffer>();
 messageDigests = new ThreadLocal<MessageDigest>();
}

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

/**
 * Retrieves the set of RDNs that comprise the DN with the provided string
 * representation.
 *
 * @param  s  The string representation of the DN for which to retrieve the
 *            RDNs.  It must not be {@code null}.
 *
 * @return  The set of RDNs that comprise the DN with the provided string
 *          representation.
 *
 * @throws  LDAPException  If the provided string cannot be parsed as a DN.
 */
public static RDN[] getRDNs(final String s)
    throws LDAPException
{
 return new DN(s).getRDNs();
}

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

/**
 * Retrieves the set of RDNs that comprise the DN with the provided string
 * representation.
 *
 * @param  s  The string representation of the DN for which to retrieve the
 *            RDNs.  It must not be {@code null}.
 *
 * @return  The set of RDNs that comprise the DN with the provided string
 *          representation.
 *
 * @throws  LDAPException  If the provided string cannot be parsed as a DN.
 */
public static RDN[] getRDNs(final String s)
    throws LDAPException
{
 return new DN(s).getRDNs();
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

相关文章