com.bea.control.annotations
Annotation Type Security


@InterceptorAnnotation(service=com.bea.control.interceptors.SecurityInterceptor.class)
@Documented
@Retention(value=RUNTIME)
@Target(value=METHOD)
public @interface Security

The security annotation for controls.

Author:
Copyright (c) 2005 by BEA Systems. All Rights Reserved.

Optional Element Summary
 String[] rolesAllowed
          Roles allowed to run the annotated method(s).
 String runAs
          Run as the given role.
 String runAsPrincipal
          Run as the given principal.
 

rolesAllowed

public abstract String[] rolesAllowed
Roles allowed to run the annotated method(s).

Returns:
one or more roles.
Default:
""

runAs

public abstract String runAs
Run as the given role.

Returns:
a role name.
Default:
""

runAsPrincipal

public abstract String runAsPrincipal
Run as the given principal.

Returns:
a principal name.
Default:
""