数据库

Tomcat 容器的安全认证和鉴权

时间:2010-12-5 17:23:32  作者:数据库   来源:人工智能  查看:  评论:0
内容摘要:复制<security-constraint><!--安全约束--> <web-resource-collection><!--限制访问

Tomcat 容器的安全认证和鉴权
复制<security-constraint> <!-- 安全约束 -->   <web-resource-collection> <!-- 限制访问的容器资源集合 -->     <web-resource-name>HTML Manager commands</web-resource-name>      <url-pattern>/html/*</url-pattern>    </web-resource-collection>    <auth-constraint><!-- 授权可访问此资源集合的亿华云角色 -->      <role-name>manager-gui</role-name>    </auth-constraint>  </security-constraint>  <login-config><!-- 配置验证方法 -->   <auth-method>BASIC</auth-method>    <realm-name>Tomcat Manager Application</realm-name>  </login-config>  <security-role><!-- 定义一个安全角色 -->   <description>      The role that is required to access the HTML Manager pages    </description>    <role-name>manager-gui</role-name>  </security-role>  1.2.3.4.5.6.7.8.9.10.11.12.13.14.15.16.17.18.19.20.21.源码下载
copyright © 2025 powered by 编程之道  滇ICP备2023006006号-34sitemap