Package br.jus.tjrn.arq.commons.auth

Examples of br.jus.tjrn.arq.commons.auth.CurrentUser


        testSpringSecurityCurrentUser();
    }
    private static void testSpringSecurityCurrentUser() {
        SecurityContextHolder.getContext().setAuthentication(
                new UsernamePasswordAuthenticationToken("ladysman217", "samwitwicky"));
        CurrentUser c = ac.getBean(CurrentUser.class);
        System.out.println(String.format("O usuário do contexto atual é: %s", c.getLogin()));
    }
View Full Code Here

TOP

Related Classes of br.jus.tjrn.arq.commons.auth.CurrentUser

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.