KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jbpm > security > authenticator > JBossAuthenticator


1 package org.jbpm.security.authenticator;
2
3 import org.jboss.security.SecurityAssociation;
4
5 /**
6  * retrieves the actorId as the name of the principal from the SecurityAssociation.
7  */

8 public class JBossAuthenticator implements Authenticator {
9
10   public String JavaDoc getAuthenticatedActorId() {
11     return SecurityAssociation.getPrincipal().getName();
12   }
13 }
14
Popular Tags