private AuthenticationManager authenticationManager;
private String systemKey = KernelConstants.DEFAULT_SECURITY_KEY;
- protected void logInAsAnonymous() {
+ public void logInAsAnonymous() {
// TODO Better deal with anonymous authentication
try {
List<SimpleGrantedAuthority> anonAuthorities = Collections
}
}
- protected void logInWithPassword(String username, char[] password) {
+ public void logInWithPassword(String username, char[] password) {
UsernamePasswordAuthenticationToken token = new UsernamePasswordAuthenticationToken(
username, password);
Authentication authentication = authenticationManager