AnsweredAssumed Answered

Get Administrator password with JAVA

Question asked by lmoulin on Jan 25, 2008
Latest reply on Jan 29, 2008 by lmoulin
Hello,
I have developed a new wizard.
In my program, I create a new administrator session.
See the following code:

FacesContext context = FacesContext.getCurrentInstance();
ServiceRegistry serviceRegistry =  Repository.getServiceRegistry(context);
AuthenticationService authenticationService = serviceRegistry.getAuthenticationService();
authenticationService.authenticate("admin", "admin".toCharArray());

How can I create a administrator session without writing the password of admin?
Thanks a lot,
Luc

Outcomes