Package org.acegisecurity.ui

Examples of org.acegisecurity.ui.WebAuthenticationDetails


     * @param authRequest the authentication request object that should have
     *        its details set
     */
    protected void setDetails(HttpServletRequest request,
        UsernamePasswordAuthenticationToken authRequest) {
        authRequest.setDetails(new WebAuthenticationDetails(request));
    }
View Full Code Here


            password = "";
        }

        UsernamePasswordAuthenticationToken authRequest = new UsernamePasswordAuthenticationToken(username,
                password);
        authRequest.setDetails(new WebAuthenticationDetails(request));

        return this.getAuthenticationManager().authenticate(authRequest);
    }
View Full Code Here

            if ((existingAuth == null)
                || !existingAuth.getName().equals(username)
                || !existingAuth.isAuthenticated()) {
                UsernamePasswordAuthenticationToken authRequest = new UsernamePasswordAuthenticationToken(username,
                        password);
                authRequest.setDetails(new WebAuthenticationDetails(
                        httpRequest, false));

                Authentication authResult;

                try {
View Full Code Here

                    + "' with response: '" + responseDigest + "'");
            }

            UsernamePasswordAuthenticationToken authRequest = new UsernamePasswordAuthenticationToken(user,
                    user.getPassword());
            authRequest.setDetails(new WebAuthenticationDetails(httpRequest));

            SecurityContextHolder.getContext().setAuthentication(authRequest);
        }

        chain.doFilter(request, response);
View Full Code Here

        Assert.isInstanceOf(HttpServletRequest.class, request,
            "ServletRequest must be an instance of HttpServletRequest");

        AnonymousAuthenticationToken auth = new AnonymousAuthenticationToken(key,
                userAttribute.getPassword(), userAttribute.getauthorities());
        auth.setDetails(new WebAuthenticationDetails(
                (HttpServletRequest) request));

        return auth;
    }
View Full Code Here

     * @param authRequest the authentication request object that should have
     *        its details set
     */
    protected void setDetails(HttpServletRequest request,
        UsernamePasswordAuthenticationToken authRequest) {
        authRequest.setDetails(new WebAuthenticationDetails(request));
    }
View Full Code Here

                        // create the new authentication token
                        targetUserRequest = new UsernamePasswordAuthenticationToken(targetUser,
                                targetUser.getPassword(), authorities);

                        // set details
                        targetUserRequest.setDetails(new WebAuthenticationDetails(
                                request));

                        return targetUserRequest;
                    }
View Full Code Here

            X509Certificate clientCertificate = extractClientCertificate(httpRequest);

            try {
                X509AuthenticationToken authRequest = new X509AuthenticationToken(clientCertificate);

                authRequest.setDetails(new WebAuthenticationDetails(httpRequest));
                authResult = authenticationManager.authenticate(authRequest);
                successfulAuthentication(httpRequest, httpResponse, authResult);
            } catch (AuthenticationException failed) {
                unsuccessfulAuthentication(httpRequest, httpResponse, failed);
            }
View Full Code Here

TOP

Related Classes of org.acegisecurity.ui.WebAuthenticationDetails

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.