- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.jboss.web.WebPermissionMapping.createPermissions()
方法的一些代码示例,展示了WebPermissionMapping.createPermissions()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebPermissionMapping.createPermissions()
方法的具体详情如下:
包路径:org.jboss.web.WebPermissionMapping
类名称:WebPermissionMapping
方法名:createPermissions
[英]Apply the JACC rules for creating permissions from the web.xml security-constraints.
[中]应用JACC规则从web创建权限。xml安全约束。
代码示例来源:origin: org.jboss.jbossas/jboss-as-server
@Override
protected void createPermissions(JBossWebMetaData metaData,
PolicyConfiguration policyConfiguration)
throws PolicyContextException
{
WebPermissionMapping.createPermissions(metaData, policyConfiguration);
}
}
代码示例来源:origin: org.jboss.jbossas/jboss-as-server
@Override
protected void createPermissions(JBossWebMetaData metaData,
PolicyConfiguration policyConfiguration) throws PolicyContextException
{
WebPermissionMapping.createPermissions(metaData, policyConfiguration);
}
}
代码示例来源:origin: org.jboss.jbossas/jboss-as-server
WebPermissionMapping.createPermissions(wmd, policyConfiguration);
代码示例来源:origin: org.jboss.ws/jbossws-jboss501CR1
/**
* JBAS-5935: The dynamic web application generated by the JBossWS
* does not go through the war security deployer. Hence the JACC
* permissions are not created. There is a need to explicitly create
* the war jacc permissions.
* @param depName
* @param jbwmd
* @throws Exception
*/
protected void generateJACCPermissions(String depName, JBossWebMetaData jbwmd)
throws Exception
{
PolicyConfigurationFactory policyConfigurationFactory =
PolicyConfigurationFactory.getPolicyConfigurationFactory();
PolicyConfiguration policyConfiguration =
policyConfigurationFactory.getPolicyConfiguration(depName, false);
WebPermissionMapping.createPermissions(jbwmd, policyConfiguration);
policyConfiguration.commit();
}
}
代码示例来源:origin: org.jboss.ws/jbossws-jboss500x
/**
* JBAS-5935: The dynamic web application generated by the JBossWS
* does not go through the war security deployer. Hence the JACC
* permissions are not created. There is a need to explicitly create
* the war jacc permissions.
* @param depName
* @param jbwmd
* @throws Exception
*/
protected void generateJACCPermissions(String depName, JBossWebMetaData jbwmd)
throws Exception
{
PolicyConfigurationFactory policyConfigurationFactory =
PolicyConfigurationFactory.getPolicyConfigurationFactory();
PolicyConfiguration policyConfiguration =
policyConfigurationFactory.getPolicyConfiguration(depName, false);
WebPermissionMapping.createPermissions(jbwmd, policyConfiguration);
policyConfiguration.commit();
}
}
代码示例来源:origin: org.jboss.ws/jbossws-jboss510x
/**
* JBAS-5935: The dynamic web application generated by the JBossWS
* does not go through the war security deployer. Hence the JACC
* permissions are not created. There is a need to explicitly create
* the war jacc permissions.
* @param depName
* @param jbwmd
* @throws Exception
*/
protected void generateJACCPermissions(String depName, JBossWebMetaData jbwmd)
throws Exception
{
PolicyConfigurationFactory policyConfigurationFactory =
PolicyConfigurationFactory.getPolicyConfigurationFactory();
PolicyConfiguration policyConfiguration =
policyConfigurationFactory.getPolicyConfiguration(depName, false);
WebPermissionMapping.createPermissions(jbwmd, policyConfiguration);
policyConfiguration.commit();
}
}
代码示例来源:origin: org.jboss.ws/jbossws-jboss600x
/**
* JBAS-5935: The dynamic web application generated by the JBossWS
* does not go through the war security deployer. Hence the JACC
* permissions are not created. There is a need to explicitly create
* the war jacc permissions.
* @param depName
* @param jbwmd
* @throws Exception
*/
protected void generateJACCPermissions(String depName, JBossWebMetaData jbwmd)
throws Exception
{
PolicyConfigurationFactory policyConfigurationFactory =
PolicyConfigurationFactory.getPolicyConfigurationFactory();
PolicyConfiguration policyConfiguration =
policyConfigurationFactory.getPolicyConfiguration(depName, false);
WebPermissionMapping.createPermissions(jbwmd, policyConfiguration);
policyConfiguration.commit();
}
}
代码示例来源:origin: org.jboss.ws/jbossws-jboss510
/**
* JBAS-5935: The dynamic web application generated by the JBossWS
* does not go through the war security deployer. Hence the JACC
* permissions are not created. There is a need to explicitly create
* the war jacc permissions.
*
* @param dep webservice deployment
*/
@Override
public void start(final Deployment dep)
{
final JBossWebMetaData jbossWebMD = WSHelper.getRequiredAttachment(dep, JBossWebMetaData.class);
try
{
final PolicyConfigurationFactory policyConfigurationFactory = PolicyConfigurationFactory
.getPolicyConfigurationFactory();
final PolicyConfiguration policyConfiguration = policyConfigurationFactory.getPolicyConfiguration(dep
.getSimpleName(), false);
WebPermissionMapping.createPermissions(jbossWebMD, policyConfiguration);
policyConfiguration.commit();
}
catch (Exception e)
{
throw new RuntimeException("Exception generating JACC perms: ", e);
}
}
代码示例来源:origin: org.jboss.ws/jbossws-jboss600M2
/**
* JBAS-5935: The dynamic web application generated by the JBossWS
* does not go through the war security deployer. Hence the JACC
* permissions are not created. There is a need to explicitly create
* the war jacc permissions.
*
* @param dep webservice deployment
*/
@Override
public void start(final Deployment dep)
{
final JBossWebMetaData jbossWebMD = WSHelper.getRequiredAttachment(dep, JBossWebMetaData.class);
try
{
final PolicyConfigurationFactory policyConfigurationFactory = PolicyConfigurationFactory
.getPolicyConfigurationFactory();
final PolicyConfiguration policyConfiguration = policyConfigurationFactory.getPolicyConfiguration(dep
.getSimpleName(), false);
WebPermissionMapping.createPermissions(jbossWebMD, policyConfiguration);
policyConfiguration.commit();
}
catch (Exception e)
{
throw new RuntimeException("Exception generating JACC perms: ", e);
}
}
代码示例来源:origin: org.jboss.ws/jbossws-jboss501
/**
* JBAS-5935: The dynamic web application generated by the JBossWS
* does not go through the war security deployer. Hence the JACC
* permissions are not created. There is a need to explicitly create
* the war jacc permissions.
*
* @param dep webservice deployment
*/
@Override
public void start(final Deployment dep)
{
final JBossWebMetaData jbossWebMD = WSHelper.getRequiredAttachment(dep, JBossWebMetaData.class);
try
{
final PolicyConfigurationFactory policyConfigurationFactory = PolicyConfigurationFactory
.getPolicyConfigurationFactory();
final PolicyConfiguration policyConfiguration = policyConfigurationFactory.getPolicyConfiguration(dep
.getSimpleName(), false);
WebPermissionMapping.createPermissions(jbossWebMD, policyConfiguration);
policyConfiguration.commit();
}
catch (Exception e)
{
throw new RuntimeException("Exception generating JACC perms: ", e);
}
}
本文整理了Java中org.jboss.web.WebPermissionMapping.createPermissions()方法的一些代码示例,展示了WebPermissionMapping.cr
我是一名优秀的程序员,十分优秀!