AnsweredAssumed Answered

How to get the MutableAuthenticationService ?

Question asked by hatspeed on May 11, 2013
Latest reply on May 12, 2013 by hatspeed
hi everyone , i need help

i don't now how to get the MutableAuthenticationService , i want to disable a user account
i have used this code , it doesn't work


MutableAuthenticationService authenticationService=new MutableAuthenticationServiceImpl();
   authenticationService.authenticate("admin", "admin".toCharArray());
   authenticationService.setAuthenticationEnabled("user1", false);




java.lang.NullPointerException


plzzz help


Hatspeed

Outcomes