Package org.apache.jetspeed.security.impl

Examples of org.apache.jetspeed.security.impl.UserSubjectPrincipalImpl


                    {
                    }      
                    if (subject == null)
                    {
                        Set principals = new PrincipalsSet();
                        UserSubjectPrincipalImpl userPrincipal = new UserSubjectPrincipalImpl(username);
                        principals.add(userPrincipal);
                        subject = new Subject(true, principals, new HashSet(), new HashSet());
                        userPrincipal.setSubject(subject);
                    }
                    Principal principal = SecurityHelper.getPrincipal(subject, UserPrincipal.class);
                    sRequest = wrapperRequest(request, subject, principal);
                    request.getSession().removeAttribute(LoginConstants.ERRORCODE);
                    HttpSession session = request.getSession(true);
View Full Code Here


                    }      
                    if (subject == null)
                    {
                        Set principals = new PrincipalsSet();
                        subject = new Subject(true, principals, new HashSet(), new HashSet());
                        UserPrincipal userPrincipal = new UserSubjectPrincipalImpl(username, subject);
                        principals.add(userPrincipal);
                    }
                    Principal principal = SecurityHelper.getPrincipal(subject, UserPrincipal.class);
                    sRequest = wrapperRequest(request, subject, principal);
                    request.getSession().removeAttribute(LoginConstants.ERRORCODE);
View Full Code Here

                boolean success = userManager.authenticate(username, password);
                if (success)
                {
                    Set principals = new PrincipalsSet();
                    Subject subject = new Subject(true, principals, new HashSet(), new HashSet());
                    UserPrincipal userPrincipal = new UserSubjectPrincipalImpl(username, subject);
                    principals.add(userPrincipal);
                    sRequest = wrapperRequest((HttpServletRequest)request, userPrincipal);
                    request.getSession().removeAttribute(LoginConstants.ERRORCODE);
                    HttpSession session = request.getSession(true);
                    session.setAttribute(PortalReservedParameters.SESSION_KEY_SUBJECT, subject);
View Full Code Here

TOP

Related Classes of org.apache.jetspeed.security.impl.UserSubjectPrincipalImpl

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.