Search in sources :

Example 6 with ChangeRoleMapperPermission

use of org.wildfly.security.auth.permission.ChangeRoleMapperPermission 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;
}
Also used : ElytronPermission(org.wildfly.security.permission.ElytronPermission) JavaArchive(org.jboss.shrinkwrap.api.spec.JavaArchive) ChangeRoleMapperPermission(org.wildfly.security.auth.permission.ChangeRoleMapperPermission) Deployment(org.jboss.arquillian.container.test.api.Deployment)

Aggregations

Deployment (org.jboss.arquillian.container.test.api.Deployment)6 ChangeRoleMapperPermission (org.wildfly.security.auth.permission.ChangeRoleMapperPermission)6 ElytronPermission (org.wildfly.security.permission.ElytronPermission)6 JavaArchive (org.jboss.shrinkwrap.api.spec.JavaArchive)5 StringAsset (org.jboss.shrinkwrap.api.asset.StringAsset)4 PropertyPermission (java.util.PropertyPermission)3 CommonCriteria (org.jboss.as.test.categories.CommonCriteria)3 OperateOnDeployment (org.jboss.arquillian.container.test.api.OperateOnDeployment)2 AbstractSecurityDomainSetup (org.jboss.as.test.integration.security.common.AbstractSecurityDomainSetup)2 AuthPermission (javax.security.auth.AuthPermission)1 MDBRole (org.jboss.as.test.integration.ejb.security.authorization.MDBRole)1 SimpleSLSB (org.jboss.as.test.integration.ejb.security.authorization.SimpleSLSB)1 StatelessSingletonUseBean (org.jboss.as.test.integration.ejb.security.runasprincipal.transitive.StatelessSingletonUseBean)1 TestLogHandlerSetupTask (org.jboss.as.test.shared.TestLogHandlerSetupTask)1 WebArchive (org.jboss.shrinkwrap.api.spec.WebArchive)1