开发者

GLassfish SSL Configuration Page Level

开发者 https://www.devze.com 2022-12-28 20:51 出处:网络
How can I secure only some of the pages of a web a开发者_开发技巧pplication running on glassfish V3?In your web.xml:

How can I secure only some of the pages of a web a开发者_开发技巧pplication running on glassfish V3?


In your web.xml:

<security-constraint>
    <display-name>Security Settings</display-name>
    <web-resource-collection>
        <web-resource-name>SSL Pages</web-resource-name>
        <description/>
        <url-pattern>/*.jsp</url-pattern>
        <http-method>GET</http-method>
        <http-method>POST</http-method>
    </web-resource-collection>
    <user-data-constraint>
        <description>CONFIDENTIAL requires SSL</description>
        <transport-guarantee>CONFIDENTIAL</transport-guarantee>
    </user-data-constraint>
</security-constraint>

change the url-pattern to whatever you need.


We need to add a filter further in configuration.
check it here

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号