Win a copy of Murach's Python Programming this week in the Jython/Python forum!
    Bookmark Topic Watch Topic
  • New Topic

Writing Secure Servlets  RSS feed

 
Jaggi Kunal
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Report post to moderator
I have recently started writing Servlet code. I want to know, how to send data from a web page to a Servlet in an encrypted format?
Here is the web page
<form method='post' action='/servlet/UserLogin'>
<table>
<tr>
<td><b>ID</b></td>
<td><input type='text' name='id'></td>
</tr>
<tr>
<td><b>Password</b></td>
<td><input type='password' name='pass'></td>
</tr>
<tr>
<td><input type='submit' value='Submit'></td>
</tr>
</table>
</form>
In the servlet I am retriving the parameters using HttpservletRequest.getParameter(String) method.
In an ordinary case, the client establishes a socket connection with the web server and passes data as plain text but I want the same to be send in encrypted form.
I have no prior knowledge of Java Security API. And, I don’t want to establish a SSL connection.

Regards,
Kunal Jaggi
SCJP2
 
Marilyn de Queiroz
Sheriff
Posts: 9079
12
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please do not cross post. Thanks.
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!