Examples of UnixPrincipal


Examples of com.sun.security.auth.UnixPrincipal

            return true;
        }

        Principal user = getCanonicalUser(SecurityConstants.OS_PRINCIPAL_CLASS);
        if (user != null) {
            subject.getPrincipals().add(new UnixPrincipal(user.getName()));
            return true;
        }
        LOG.error("No such user " + subject);
        throw new LoginException("No such user " + subject);
    }
View Full Code Here

Examples of com.sun.security.auth.UnixPrincipal

                    sharedState.put(NAME, username);
                    sharedState.put(PWD, password);
                }

                // create the user principal
                userPrincipal = new UnixPrincipal(username);

                // get the UID
                Attribute uid = attributes.get(USER_UID);
                String uidNumber = (String)uid.get();
                UIDPrincipal = new UnixNumericUserPrincipal(uidNumber);
View Full Code Here

Examples of com.sun.security.auth.UnixPrincipal

            succeeded = false;
            throw new FailedLoginException
                                ("Failed in attempt to import " +
                                "the underlying system identity information");
        } else {
            userPrincipal = new UnixPrincipal(ss.getUsername());
            UIDPrincipal = new UnixNumericUserPrincipal(ss.getUid());
            GIDPrincipal = new UnixNumericGroupPrincipal(ss.getGid(), true);
            if (ss.getGroups() != null && ss.getGroups().length > 0) {
                unixGroups = ss.getGroups();
                for (int i = 0; i < unixGroups.length; i++) {
View Full Code Here

Examples of com.sun.security.auth.UnixPrincipal

        sharedState.put(NAME, username);
        sharedState.put(PWD, password);
    }

    // create the user principal
    userPrincipal = new UnixPrincipal(username);

    // get the UID
    Attribute uid = attributes.get(USER_UID);
    String uidNumber = (String)uid.get();
    UIDPrincipal = new UnixNumericUserPrincipal(uidNumber);
View Full Code Here

Examples of com.sun.security.auth.UnixPrincipal

      succeeded = false;
      throw new FailedLoginException
        ("Failed in attempt to import " +
        "the underlying system identity information");
  } else {
      userPrincipal = new UnixPrincipal(ss.getUsername());
      UIDPrincipal = new UnixNumericUserPrincipal(ss.getUid());
      GIDPrincipal = new UnixNumericGroupPrincipal(ss.getGid(), true);
      if (ss.getGroups() != null && ss.getGroups().length > 0) {
    unixGroups = ss.getGroups();
    for (int i = 0; i < unixGroups.length; i++) {
View Full Code Here

Examples of com.sun.security.auth.UnixPrincipal

                    sharedState.put(NAME, username);
                    sharedState.put(PWD, password);
                }

                // create the user principal
                userPrincipal = new UnixPrincipal(username);

                // get the UID
                Attribute uid = attributes.get(USER_UID);
                String uidNumber = (String)uid.get();
                UIDPrincipal = new UnixNumericUserPrincipal(uidNumber);
View Full Code Here

Examples of com.sun.security.auth.UnixPrincipal

            succeeded = false;
            throw new FailedLoginException
                                ("Failed in attempt to import " +
                                "the underlying system identity information");
        } else {
            userPrincipal = new UnixPrincipal(ss.getUsername());
            UIDPrincipal = new UnixNumericUserPrincipal(ss.getUid());
            GIDPrincipal = new UnixNumericGroupPrincipal(ss.getGid(), true);
            if (ss.getGroups() != null && ss.getGroups().length > 0) {
                unixGroups = ss.getGroups();
                for (int i = 0; i < unixGroups.length; i++) {
View Full Code Here

Examples of com.sun.security.auth.UnixPrincipal

                    sharedState.put(NAME, username);
                    sharedState.put(PWD, password);
                }

                // create the user principal
                userPrincipal = new UnixPrincipal(username);

                // get the UID
                Attribute uid = attributes.get(USER_UID);
                String uidNumber = (String)uid.get();
                UIDPrincipal = new UnixNumericUserPrincipal(uidNumber);
View Full Code Here

Examples of com.sun.security.auth.UnixPrincipal

            succeeded = false;
            throw new FailedLoginException
                                ("Failed in attempt to import " +
                                "the underlying system identity information");
        } else {
            userPrincipal = new UnixPrincipal(ss.getUsername());
            UIDPrincipal = new UnixNumericUserPrincipal(ss.getUid());
            GIDPrincipal = new UnixNumericGroupPrincipal(ss.getGid(), true);
            if (ss.getGroups() != null && ss.getGroups().length > 0) {
                unixGroups = ss.getGroups();
                for (int i = 0; i < unixGroups.length; i++) {
View Full Code Here

Examples of com.sun.security.auth.UnixPrincipal

            return true;
        }

        Principal user = getCanonicalUser(SecurityConstants.OS_PRINCIPAL_CLASS);
        if (user != null) {
            subject.getPrincipals().add(new UnixPrincipal(user.getName()));
            return true;
        }
        LOG.error("No such user " + subject);
        throw new LoginException("No such user " + subject);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.