1 package org.jbpm.security; 2 3 import org.jbpm.JbpmConfiguration; 4 import org.jbpm.security.authenticator.Authenticator; 5 import org.jbpm.security.authenticator.JbpmDefaultAuthenticator; 6 7 40 public abstract class Authentication { 41 42 44 protected static Authenticator authenticator = (Authenticator) JbpmConfiguration.getObject("jbpm.authenticator", new JbpmDefaultAuthenticator()); 45 46 52 public static String getAuthenticatedActorId() { 53 return authenticator.getAuthenticatedActorId(); 54 } 55 56 58 65 public static void pushAuthenticatedActorId(String actorId) { 66 JbpmDefaultAuthenticator.pushAuthenticatedActorId(actorId); 67 } 68 69 76 public static void popAuthenticatedActorId() { 77 JbpmDefaultAuthenticator.popAuthenticatedActorId(); 78 } 79 } 80 | Popular Tags |