Examples of loginLocal()


Examples of org.rhq.enterprise.server.auth.SubjectManagerLocal.loginLocal()

        boolean needsRegistration = false;

        try {
            // authenticate the credentials
            SubjectManagerLocal subjectManager = LookupUtil.getSubjectManager();
            Subject subject = subjectManager.loginLocal(logonForm.getJ_username(), logonForm.getJ_password());
            Integer sessionId = subject.getSessionId(); // this is the RHQ session ID, not related to the HTTP session

            log.debug("Logged in as [" + logonForm.getJ_username() + "] with session id [" + sessionId + "]");

            boolean hasPrincipal = true;
View Full Code Here

Examples of org.rhq.enterprise.server.auth.SubjectManagerLocal.loginLocal()

        boolean isSameUser = subject.getName().equals(userName);

        // if this user cannot administer other user's passwords, make sure he gave the old password as confirmation
        if (!admin) {
            try {
                int dummySession = subjectManager.loginLocal(userName, pForm.getCurrentPassword()).getSessionId();
                subjectManager.logout(dummySession);

                // The above killed our session for subject if subject == userToBeModified
                if (isSameUser) {
                    subject = subjectManager.loginLocal(userName, pForm.getCurrentPassword());
View Full Code Here

Examples of org.rhq.enterprise.server.auth.SubjectManagerLocal.loginLocal()

                int dummySession = subjectManager.loginLocal(userName, pForm.getCurrentPassword()).getSessionId();
                subjectManager.logout(dummySession);

                // The above killed our session for subject if subject == userToBeModified
                if (isSameUser) {
                    subject = subjectManager.loginLocal(userName, pForm.getCurrentPassword());
                }
            } catch (LoginException e) {
                RequestUtils.setError(request, "admin.user.error.WrongPassword", "currentPassword");
                return returnFailure(request, mapping, ParamConstants.USER_PARAM, pForm.getId());
            }
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.