Package com.sun.jndi.ldap

Examples of com.sun.jndi.ldap.LdapName


    return ldif.toString();
  }

  public Name asJndiName() {
    try {
      LdapName name = null;
      for (LdapDNComponent component : components) {
        String encoded = component.attributeName + "=" + escapeForJndi(component.value);
        if (name == null) {
          name = new LdapName(encoded);
        } else {
          name.add(0, encoded);
        }
      }
      return name;
    } catch (InvalidNameException e) {
      throw new IllegalStateException("Unexpected invalid name: " + this, e);
View Full Code Here


public class Case {

    public static void main(String[] args) throws Exception {

        LdapName name = new LdapName("cn=Kuwabatake Sanjuro");
        name.setValuesCaseSensitive(false);
        name.size();    // will throw exception if rdns is null
    }
View Full Code Here

TOP

Related Classes of com.sun.jndi.ldap.LdapName

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.