|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jbpm.security.authentication.SubjectAuthenticationServiceFactory
public class SubjectAuthenticationServiceFactory
Factory to create a SubjectAuthenticationService.
Two properties can be set: allowActorIdOverwrite & principalClassName
principalClassName configuration property specifies the class name of the principal that should be used from the current subject. This could be for example org.jboss.security.CallerIdentity in an JBoss AS.
If not actorId is set, the name of that principal is used as the currently authenticated actorId. If an actorId!=null is set (via setActorId) this one overwrites the principal. This behavior is configurable via the allowActorIdOverwrite attribute. If this is set to false, setActorId is simply ignored.
Example:
<service name="authentication">
<factory>
<bean class="org.jbpm.security.authentication.SubjectAuthenticationServiceFactory">
<field name="principalClassName"> <string value="org.jboss.security.CallerIdentity" /> </field>
<field name="allowActorIdOverwrite"> <boolean value="true" /> </field>
</bean>
</factory>
</service>
| Constructor Summary | |
|---|---|
SubjectAuthenticationServiceFactory()
|
|
| Method Summary | |
|---|---|
void |
close()
close this service factory |
java.lang.String |
getPrincipalClassName()
|
java.lang.Boolean |
isAllowActorIdOverwrite()
|
Service |
openService()
open a service. |
void |
setAllowActorIdOverwrite(java.lang.Boolean allowActorIdOverwrite)
|
void |
setPrincipalClassName(java.lang.String principalClassName)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SubjectAuthenticationServiceFactory()
| Method Detail |
|---|
public Service openService()
ServiceFactory
openService in interface ServiceFactorypublic void close()
ServiceFactory
close in interface ServiceFactorypublic java.lang.Boolean isAllowActorIdOverwrite()
public void setAllowActorIdOverwrite(java.lang.Boolean allowActorIdOverwrite)
public java.lang.String getPrincipalClassName()
public void setPrincipalClassName(java.lang.String principalClassName)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||