JBoss.org Community Documentation

5.27.1.3. SecurityDomain

/**
* Annotation for specifying the JBoss security domain for an EJB
* 
* @author <a href="mailto:[email protected]">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 "";
}