JBoss.org Community Documentation

9.20.1.3. SecurityDomain

 
/**
* Annotation for specifying the JBoss security domain for an EJB
* 
* @author <a href="mailto:bill@jboss.org">Bill Burke</a>
**/
@Target(ElementType.TYPE) @Retention(RetentionPolicy.RUNTIME)
public @interface SecurityDomain
{
/**
* The required name for the security domain.
* 
* Do not use the JNDI name
* 
*    Good: "MyDomain"
*    Bad:  "java:/jaas/MyDomain"
*/
String value();
   
/**
* The name for the unauthenticated pricipal
*/
String unauthenticatedPrincipal() default "";
}