1 25 26 package org.objectweb.easybeans.tests.common.ejbs.base.security; 27 28 import java.security.Principal ; 29 30 import javax.annotation.security.DenyAll; 31 import javax.annotation.security.PermitAll; 32 import javax.annotation.security.RolesAllowed; 33 34 40 public interface ItfSecurityRoles { 41 42 45 @PermitAll 46 void permitAllAttribute(); 47 48 51 @DenyAll 52 void denyAllAttribute(); 53 54 55 58 @RolesAllowed(value = {"mainrole", "secondaryrole"}) 59 void permitTwoRoles(); 60 61 62 65 @RolesAllowed(value = {"mainrole"}) 66 void permitOneRole(); 67 68 75 boolean testCallerPrincipal(); 76 77 83 boolean isCallerinRole(final String role); 84 85 89 Principal getCallerPrincipal(); 90 91 } 92 | Popular Tags |