Package org.encuestame.core.security.token

Examples of org.encuestame.core.security.token.EnMeSecurityToken


    public static void authenticate(final UserAccount account){
        final EnMeUserAccountDetails details = SecurityUtils.convertUserAccountToUserDetails(account, true);
        //log.debug("+++++++++++ authenticate +++++++++++++");
        //final Collection<GrantedAuthority> authorities = ConvertDomainsToSecurityContext
        //.convertEnMePermission(account.getSecUserPermissions());
        final EnMeSecurityToken securityToken = new EnMeSecurityToken(account);
         //clear the context.
        SecurityContextHolder.clearContext();
        //set new authentication.
        SecurityContextHolder.getContext().setAuthentication(securityToken);
        if (log.isInfoEnabled()) {
View Full Code Here

TOP

Related Classes of org.encuestame.core.security.token.EnMeSecurityToken

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.