Examples of checkAuthentication()


Examples of org.apache.cocoon.webapps.portal.components.PortalManager.checkAuthentication()

        PortalManager portal = (PortalManager)this.manager.lookup( PortalManager.ROLE );
        try {
            portal.configurationTest();
            if (null != copletID) {
                portal.checkAuthentication(redirector, copletID);
            }
        } finally {
            this.manager.release( portal );
        }
View Full Code Here

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

        Integer userId = userIdString == null ? null : Integer.valueOf(userIdString);

        if (userId == null || userId != subject.getId()) {
            SubjectManagerLocal subjectManager = LookupUtil.getSubjectManager();

            Subject authSubject = subjectManager.checkAuthentication(userName, userPassword);

            if (authSubject == null) {
                PropertySimple userNameProp = new PropertySimple(PROP_USER_NAME, userName);
                userNameProp.setErrorMessage(VALIDATION_ERROR_MESSAGE);
                alertParameters.put(userNameProp);
View Full Code Here

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

        String userPass = new String(bytes);
        String username = userPass.substring(0,userPass.indexOf(":"));
        String password = userPass.substring(userPass.indexOf(":")+1);

        SubjectManagerLocal sm = LookupUtil.getSubjectManager();
        Subject subject = sm.checkAuthentication(username, password);

        if (subject==null) {

            ((HttpServletResponse) resp).sendError(HttpServletResponse.SC_UNAUTHORIZED);
        }
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.