use of org.wildfly.security.permission.ElytronPermission in project wildfly by wildfly.
the class SingletonSecurityTestCase method deploy.
@Deployment
public static Archive<?> deploy() {
JavaArchive jar = ShrinkWrap.create(JavaArchive.class, "ejb3-singleton-security.jar");
jar.addPackage(SingletonSecurityTestCase.class.getPackage());
jar.addPackage(CommonCriteria.class.getPackage());
jar.addClass(Util.class);
jar.addAsResource(createPermissionsXmlAsset(new RuntimePermission("org.jboss.security.setSecurityContext"), new ElytronPermission("getSecurityDomain"), new ElytronPermission("authenticate"), new ElytronPermission("setRunAsPrincipal")), "META-INF/permissions.xml");
return jar;
}
use of org.wildfly.security.permission.ElytronPermission in project wildfly by wildfly.
the class TimeoutMethodWithRunAsAnnotationTestCase method deploy.
@Deployment
public static Archive<?> deploy() {
JavaArchive jar = ShrinkWrap.create(JavaArchive.class, "myJar.jar");
jar.addPackage(TimeoutMethodWithRunAsAnnotationTestCase.class.getPackage());
jar.addAsManifestResource(createPermissionsXmlAsset(new ElytronPermission("setRunAsPrincipal"), new ChangeRoleMapperPermission("ejb")), "permissions.xml");
return jar;
}
Aggregations