Different Authentication options in Servlets

Explain the different Authentication options available in Servlets.

Authentication options available in Servlets: There are four different options for authentication in servlets

1. Basic Authentication- In this the server uses the username and password provided by the client to authenticate the user. The server gives several attempts (up to 3 attempts) after the three wrong attempts it gives the error page (usually an HTTP 401 Unauthorized error).

2. Form-based authentication- In this the login form is made by the programmer by using HTML. This is more helpful than the basic authentication because we can create more login interface other than username and password for the authentication.

3. Digest Authentication- It is similar to basic authentication but in this the passwords are encrypted using Hash formula. This makes digest more secured.

4. Client certificate Authentication- It requires that each client accessing the resource has a certificate that it send to authenticate itself. This requires SSL protocol.
How can we use beans in JSP?
Java Beans are reusable components. They are used to separate Business Logic from Presentation Logic. Internally a bean is just an instance of a class...
Difference between JavaBeans and taglib directives
A Java Bean is a reusable software component that can be visually manipulated in builder tools. They can’t manipulate JSP content...
Scopes an object can have in a JSP page
The scope of JSP objects is divided into four parts. They are: 1. Page: Page scope means the object can be accessed within the page only on which it is created...
Post your comment