gpt4 book ai didi

org.jboss.web.WebPermissionMapping类的使用及代码示例

转载 作者:知者 更新时间:2024-03-26 08:15:05 27 4
gpt4 key购买 nike

本文整理了Java中org.jboss.web.WebPermissionMapping类的一些代码示例,展示了WebPermissionMapping类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebPermissionMapping类的具体详情如下:
包路径:org.jboss.web.WebPermissionMapping
类名称:WebPermissionMapping

WebPermissionMapping介绍

[英]A utility class encapsulating the logic for building the web container JACC permission from a deployment's metadata.
[中]一个实用程序类,封装了从部署的元数据构建web容器JACC权限的逻辑。

代码示例

代码示例来源: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

throws PolicyContextException
HashMap<String, PatternInfo> patternMap = qualifyURLPatterns(metaData);
log.debug("Qualified url patterns: "+patternMap);
   String excludedString = "!" + getCommaSeparatedString(httpMethods);
   WebResourcePermission wrp1 = new WebResourcePermission(info.pattern, excludedString);
   WebUserDataPermission wudp1 = new WebUserDataPermission(info.pattern,excludedString);
     final String methodsAsString = "!" + getCommaSeparatedString(httpMethods);
     WebResourcePermission wrpUnchecked = null;
     try
         "!" + getCommaSeparatedString(httpMethods));
      pc.addToUncheckedPolicy(wudpNonNull);

代码示例来源:origin: org.jboss.jbossas/jboss-as-server

int type = getPatternType(url);
PatternInfo info = (PatternInfo) patternMap.get(url);
if( info == null )

代码示例来源: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-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-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-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);
 }
}

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com