InfoCenter Home >
5: Securing applications -- special topics >
5.4: Overview: Using programmatic and custom logins >
5.4.3: Form-based login >
5.4.3.1: The AbstractLoginServlet class

5.4.3.1: The AbstractLoginServlet class

The AbstractLoginServlet class that encapsulates all of the functionality of a server side login.

The following list summarizes the public methods in the AbstractLoginServlet class. The source and class files are installed in the directory <installation_root>/servlets/.

init()
This method initializes the servlet.

Syntax:
void init() throws ServletException
login()
This authenticates the user and, if requested, sets up the necessary information for single sign-on.

Syntax:
Object login (HttpServletRequest req, HttpServletResponse res,
boolean setSSO)
throws ServletException
postLogin()
This is an abstract method.

Syntax:
void postLogin(HttpServletRequest req, HttpServletResponse res)
throws ServletException
logout()
This destroys the user's credentials and, if necessary, unsets the single sign-on information.

Syntax:
void logout(HttpServletRequest req, HttpServletResponse res,
Object retCreds)
throws ServletException
Go to previous article: Form login challenges Go to next article: CustomLoginServlet

 

 
Go to previous article: Form login challenges Go to next article: CustomLoginServlet