Package com.sun.security.auth

Examples of com.sun.security.auth.LdapPrincipal


            authzPrincipal = new UserPrincipal(authzIdentity);
        }

        try {

            ldapPrincipal = new LdapPrincipal(dn);

        } catch (InvalidNameException e) {
            if (debug) {
                System.out.println("\t\t[LdapLoginModule] " +
                                   "cannot create LdapPrincipal: bad DN");
View Full Code Here


      authzPrincipal = new UserPrincipal(authzIdentity);
  }

  try {

      ldapPrincipal = new LdapPrincipal(dn);

  } catch (InvalidNameException e) {
      if (debug) {
    System.out.println("\t\t[LdapLoginModule] " +
           "cannot create LdapPrincipal: bad DN");
View Full Code Here

            authzPrincipal = new UserPrincipal(authzIdentity);
        }

        try {

            ldapPrincipal = new LdapPrincipal(dn);

        } catch (InvalidNameException e) {
            if (debug) {
                System.out.println("\t\t[LdapLoginModule] " +
                                   "cannot create LdapPrincipal: bad DN");
View Full Code Here

            authzPrincipal = new UserPrincipal(authzIdentity);
        }

        try {

            ldapPrincipal = new LdapPrincipal(dn);

        } catch (InvalidNameException e) {
            if (debug) {
                System.out.println("\t\t[LdapLoginModule] " +
                                   "cannot create LdapPrincipal: bad DN");
View Full Code Here

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

        Set<Principal> principals = new Subject().getPrincipals();

        principals.add(new LdapPrincipal("x=y"));
        principals.add(new LdapPrincipal("x=#04024869"));
        principals.add(new LdapPrincipal("1.2.3=x"));
        principals.add(new LdapPrincipal("A=B"));
        principals.add(new LdapPrincipal("a=b+c=d"));
        principals.add(new LdapPrincipal("a=b,c=d,e=f"));
        principals.add(new LdapPrincipal("f=g, h=i, j=k"));

        System.out.println("Successfully created " + principals.size() +
            " LDAP principals:");
        System.out.println(principals);
    }
View Full Code Here

TOP

Related Classes of com.sun.security.auth.LdapPrincipal

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.