Examples of EnMeUserAccount


Examples of org.encuestame.core.security.details.EnMeUserAccount

        if (this.saltSource != null) {
            salt = this.saltSource.getSalt(userDetails);
        }

        final EnMeUserAccount detailsDataAccount = (EnMeUserAccount) userDetails;

        if (log.isDebugEnabled()) {
            log.debug("detailsDataAccount " + detailsDataAccount.toString());
        }

        if (!detailsDataAccount.isSocialCredentials()) {
            log.debug("SOCIAL CREDENTIALS OFF");
            if (authentication.getCredentials() == null) {
                logger.debug("Authentication failed: no credentials provided");
                throw new BadCredentialsException(
                        messages.getMessage(
View Full Code Here

Examples of org.encuestame.core.security.details.EnMeUserAccount

    protected final UserDetails retrieveUser(
            final String username,
            UsernamePasswordAuthenticationToken authentication)
            throws AuthenticationException {

        EnMeUserAccount loadedUser;
        try {
            loadedUser = (EnMeUserAccount) this.getUserDetailsService().loadUserByUsername(
                    username);
        } catch (UsernameNotFoundException notFound) {
            throw notFound;
        } catch (Exception repositoryProblem) {
            throw new AuthenticationServiceException(
                    repositoryProblem.getMessage(), repositoryProblem);
        }

        if (loadedUser == null) {
            throw new AuthenticationServiceException(
                    "UserDetailsService returned null, which is an interface contract violation");
        }
        log.debug("loaded user "+loadedUser.getUsername());
        log.info("loader user "+loadedUser.toString());
        return loadedUser;
    }
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.