Clean up and re-organise CMS
[lgpl/argeo-commons.git] / org.argeo.cms / src / org / argeo / cms / CmsLogin.java
index 54ed1efcba840632e4695e96e8651e26f3a179cb..e8a2e48fd0523d6417f86514540e13d8e71c78c2 100644 (file)
@@ -26,7 +26,7 @@ public class CmsLogin {
        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
@@ -45,7 +45,7 @@ public class CmsLogin {
                }
        }
 
-       protected void logInWithPassword(String username, char[] password) {
+       public void logInWithPassword(String username, char[] password) {
                UsernamePasswordAuthenticationToken token = new UsernamePasswordAuthenticationToken(
                                username, password);
                Authentication authentication = authenticationManager