简体   繁体   English

有人可以向我解释一下此web.xml文件中发生了什么(安全性约束)

[英]Can someone please explain to me what is happening in this web.xml file (security-constraints)

xml file and it contains the following snippet: xml文件,其中包含以下代码段:

<security-role>
    <role-name>GROUP_SECURE</role-name>
</security-role>

<security-constraint>
    <web-resource-collection>
        <web-resource-name>The lot</web-resource-name>
            <url-pattern>/services/Service1.Service1Soap11Endpoint/</url-pattern>
    .....
    </web-resource-collection>
    <auth-constraint>
        <role-name>GROUP-SECURE</role-name>
    </auth-constraint>
</security-constraint>

my understanding is users with the role of GROUP-SECURE can access what is in the web-resource-collection shown above, is this correct or does this work differently from how i understand it? 我的理解是,具有GROUP-SECURE角色的用户可以访问上面显示的Web资源集合中的内容,这是正确的还是与我的理解有所不同?

GROUP-SECURE and higer level users will be able to acess to the resources defined in the <security constraint> tag. GROUP-SECURE和更高级别的用户将能够访问<security constraint>标记中定义的资源。 Look here for some examples. 在这里查看一些示例。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM