簡體   English   中英

使用servlet的localhost https java應用程序

[英]a localhost https java application with servlets

我必須設計一個localhost應用程序,其他項目的一個代碼返回一個如下所示的URL。

http:// localhost:8080 / MyProject?id = “somevalue”

現在我的任務是實現https(由另一個項目生成的url是硬編碼的。所以我們也可以使用https url ....因為另一個項目也是我的項目之一但是在任務完成之后它將返回帶有id作為參數的url)

所以,讓我們擁有該類型的網址

https:// localhost:8443 / MyProject?id = “somevalue”

我的設計事情如下。

1. i have to use https 
2.i have to use RSA bit length of 512 bits
3.i have to be able to read the value id with request.getParameter()
4.How https coding will be different from http in servlets..
can we use the same coding of http in https..

我不需要復雜的實現。 我需要的只是它必須出現https和在servlet實現我想使用http編碼...

可能嗎..

謝謝..

如果從非SSL遷移到SSL,則不應影響您的代碼,假設您使用的是tomcat,請閱讀文檔以配置SSL

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM