|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jbpm.security.Authentication
provides central access point to the configurable authentication.
Authentication (knowing which user is running this code) is outside the scope of jBPM. It is assumed that the environment in which jBPM executes has already performed authentication and hence knows who is running the code.
The implementations that can be plugged into this by configuring
an Authenticator
implementation
in the jbpm.properties. To configure another authenticator then the default
one, specify the fully qualified class name in the property 'jbpm.authenticator'.
The default is
JbpmDefaultAuthenticator
. That
authenticator assumes that the user calls pushAuthenticatedActorId(String)
and popAuthenticatedActorId()
in a try-finally block around the
the jbpm API invocations. For web applications, there is a filter
(JbpmAuthenticationFilter
)that calls these
methods based on the httpServletRequest.getUserPrincipal().getName();
Other authentication implementation include :
JBossAuthenticator
that looks
up the currently authenticated user from the JBoss SecurityAssociation.SubjectAuthenticator
that looks
up the currently authenticated user from the current subject with
Subject.getSubject(...).
Field Summary | |
protected static Authenticator |
authenticator
|
Constructor Summary | |
Authentication()
|
Method Summary | |
static java.lang.String |
getAuthenticatedActorId()
central method to look up the currently authenticated swimlaneActorId. |
static void |
popAuthenticatedActorId()
conventience method for ending the authenticated section for the jbpm default authentication mechanism. |
static void |
pushAuthenticatedActorId(java.lang.String actorId)
conventience method for setting the authenticated swimlaneActorId for the jbpm default authentication mechanism. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static Authenticator authenticator
Constructor Detail |
public Authentication()
Method Detail |
public static java.lang.String getAuthenticatedActorId()
Authenticator
.
public static void pushAuthenticatedActorId(java.lang.String actorId)
popAuthenticatedActorId()
in the
finally block.
JbpmDefaultAuthenticator
public static void popAuthenticatedActorId()
pushAuthenticatedActorId(String)
in the
try block.
JbpmDefaultAuthenticator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |