• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Junilu Lacar
Sheriffs:
  • Tim Cooke
  • Jeanne Boyarsky
  • Knute Snortum
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • salvin francis
  • fred rosenberger
  • Frits Walraven

Form Based Authentication

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there...

As it is becoming increasingly popular, i am moving from the standalone arena toward web application and I need some help in my first application using Servlets.
I am trying to implemented a secure SSL login for a website, I wonder how can I get servlets make use of SSL. I thought of using https in the form action url. I also observed that the deployment descriptor can by used to define the authentication method, but that also applies to form based application. Thanks in advance
 
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HTTPS is used when you need a secure HTTP connection to send secure data. This is a feature supported by your web server.

Servlet API does not change for HTTP or HTTPS request. So there will be no difference as far as your servlet coding goes.

The <auth-constraint> tag you mentioned is to define security restrictions, primarily for authorisation.
 
Rancher
Posts: 43015
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch.

Note that there is usually some additional setup to do if you want to use SSL. The relevant documentation for Tomcat is her.
 
Hatim Khalifa
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi..

I appreciate your valuable replies. I think I got what you mean guys. I will try, and hopfuly it will work.

Best Regards
Hatim O. Khalifa
SCJP, SCJD
 
Well THAT's new! Comfort me, reliable tiny ad:
Two software engineers solve most of the world's problems in one K&R sized book
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic