03-28-2006 08:15 AM
AuthenticationService authenticationService = serviceRegistry.getAuthenticationService();
authenticationService.authenticate("admin", "admin".toCharArray());
But obviously this is not a good idea as the admin password should have been changed.
AuthenticationComponent authenticationComponent = (AuthenticationComponent) this.applicationContext
.getBean("authenticationComponent");
authenticationComponent.setSystemUserAsCurrentUser();
And I decided to use this in my class. But is a good idea to use this other than within a TestCase?
03-28-2006 09:51 AM
03-28-2006 10:18 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.