Hi, i'm trying to authenticate a user: anonymous wrote : The default authenticator is org.jbpm.security.authenticator.JbpmDefaultAutenticator. That implementation will maintain a ThreadLocal stack of authenticated actorId's. Authenticated blocks can be marked with the methods JbpmDefaultAutenticator.pushAuthenticatedActorId(String) and JbpmDefaultAutenticator.popAuthenticatedActorId(). Be sure to always put these demarcations in a try-finally block. For the push and pop methods of this authenticator implementation, there are convenience methods supplied on the base Authentication class. The reason that the JbpmDefaultAutenticator maintains a stack of actorIds instead of just one actorId is simple: it allows the jBPM code to distinct between code that is executed on behalf of the user and code that is executed on behalf of the jbpm engine
And i: import org.jbpm.security.authentication.JbpmDefaultAutenticator; and public String login() throws NoSuchElementException { | setAuthorizedUserName(null); | JbpmDefaultAutenticator.popAuthenticatedActorId(); | | IdentitySession identitySession = Context.getPersistenceContext().getIdentitySession(); | | try { | Object userid = identitySession.verify(userName, userPassword); | setAuthorizedUserName (userName); | JbpmDefaultAutenticator.pushAuthenticatedActorId(authorizedUserName); | return "home"; | } catch (NoSuchElementException e){return "login_error";} | } | but it says that: import org.jbpm.security.authentication.JbpmDefaultAutenticator; does not exist (like all the followings objets), what am i doing wrong? i want to authorize a user to enter the system. Thank you! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3926515#3926515 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3926515 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user