javax.annotation.security

Interface DeclareRoles

public interface DeclareRoles

Deny all users.

Method Summary

String[]
value()

Method Details

value

public String[] value()
Usages and Demos :

View More Examples of value()
   1: 
   2: import javax.annotation.security.DeclareRoles;
   3: 
   4:         ...
   5:     public Class<? extends Annotation> getAnnotationType() {
   6:         return DeclareRoles.class;
   7:     }    
   8:         ...
   9:         
  10:         DeclareRoles rolesRefAn = (DeclareRoles)ainfo.getAnnotation();
  11: 
  12:         ...
  13:             EjbDescriptor ejbDescriptor = ejbContext.getDescriptor();
  14:             for (String roleName : rolesRefAn.value()) {

View Full Code Here