简体   繁体   English

使用servlet的localhost https java应用程序

[英]a localhost https java application with servlets

i have to design a localhost application that one code at other project returns one url that follows like this.. 我必须设计一个localhost应用程序,其他项目的一个代码返回一个如下所示的URL。

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

now my task to implements the https( the url that is generated by the other project is hard coded.So we can have the https url also....as the other project is also one of my projects but after the task is over it will return url with id as parameter) 现在我的任务是实现https(由另一个项目生成的url是硬编码的。所以我们也可以使用https url ....因为另一个项目也是我的项目之一但是在任务完成之后它将返回带有id作为参数的url)

So let us have the url of the type 所以,让我们拥有该类型的网址

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

my design things are as follows. 我的设计事情如下。

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

i do not need the complex implementation. 我不需要复杂的实现。 what i need is just it has to appear https and In the servlet implementation i want to use http coding... 我需要的只是它必须出现https和在servlet实现我想使用http编码...

Is it possible.. 可能吗..

Thank you.. 谢谢..

如果从非SSL迁移到SSL,则不应影响您的代码,假设您使用的是tomcat,请阅读文档以配置SSL

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

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