欧美性猛交XXXX免费看蜜桃,成人网18免费韩国,亚洲国产成人精品区综合,欧美日韩一区二区三区高清不卡,亚洲综合一区二区精品久久

打開(kāi)APP
userphoto
未登錄

開(kāi)通VIP,暢享免費電子書(shū)等14項超值服

開(kāi)通VIP
How to make web container automatically change to SSL channel? (transport-guarantee)

OnceI observed that the web server brought me into an SSL channel after my clickinga link on a page which is accessed via a Non-SSL channel.

 

Iwondered how it did this at that time.

 

Infact it is so easy to implement this using Java. The only thing you need to setis the transport-guarantee in web.xml.

 

Below is a sample web.xml.

<!-- This resource can only be accessed by those clientwho can present an trusted client certificate -->

<security-constraint>

<web-resource-collection>

<web-resource-name>Resource protected by clientcert</web-resource-name>

<url-pattern>/ProtectedByClientCert</url-pattern>

</web-resource-collection>

<auth-constraint>

<role-name>members</role-name>

</auth-constraint>

<!-- Here We specify accesses to this resource must beover an SSL channel

The container will automatically use https to access thisresource.

-->

<user-data-constraint>

<transport-guarantee>CONFIDENTIAL</transport-guarantee>

</user-data-constraint>

</security-constraint>

 

<login-config>

<auth-method>CLIENT-CERT</auth-method>

<realm-name>Client Cert Users-onlyArea</realm-name>

</login-config>

 

 

However, you must first enable the secure port of the webcontainer.

In above example you also need to make CLIENT-CERT workfirst.


本站僅提供存儲服務(wù),所有內容均由用戶(hù)發(fā)布,如發(fā)現有害或侵權內容,請點(diǎn)擊舉報。
打開(kāi)APP,閱讀全文并永久保存 查看更多類(lèi)似文章
猜你喜歡
類(lèi)似文章
5分鐘內搞定 Tomcat 的 SSL 配置
web.xml中<security-constraint>和四種認證類(lèi)型
阿里云域名配置以及https證書(shū)(ssl證書(shū))配置
tomcat下禁止不安全的http方法
Ubuntu 16.04 布置postfix、dovecot郵件服務(wù)器
python
更多類(lèi)似文章 >>
生活服務(wù)
分享 收藏 導長(cháng)圖 關(guān)注 下載文章
綁定賬號成功
后續可登錄賬號暢享VIP特權!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服

欧美性猛交XXXX免费看蜜桃,成人网18免费韩国,亚洲国产成人精品区综合,欧美日韩一区二区三区高清不卡,亚洲综合一区二区精品久久