Package com.sun.jndi.ldap

Examples of com.sun.jndi.ldap.LdapName$DnParser


    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

     *
     * @param name - Name as String
     * @throws IOException - if string is wrong
     */
    public Name(String name) throws IOException {
        rdn = new DNParser(name).parse();
    }
View Full Code Here

     *
     * @param name - Name as String
     * @throws IOException - if string is wrong
     */
    public Name(String name) throws IOException {
        rdn = new DNParser(name).parse();
    }
View Full Code Here

     *
     * @param name - Name as String
     * @throws IOException - if string is wrong
     */
    public Name(String name) throws IOException {
        rdn = new DNParser(name).parse();
    }
View Full Code Here

TOP

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

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.