免费视频淫片aa毛片_日韩高清在线亚洲专区vr_日韩大片免费观看视频播放_亚洲欧美国产精品完整版

打開APP
userphoto
未登錄

開通VIP,暢享免費(fèi)電子書等14項(xiàng)超值服

開通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.


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

聯(lián)系客服