uCosminexus Application Server, Security Management Guide

[Contents][Index][Back][Next]

The handle method

Description

Obtains authentication information, assigns to it a reference to the WebPasswordCallback object (Callback implementation class), and passes it to the login module in the user authentication library.

Syntax

public void handle(Callback[] callbacks)
  throws IOException, UnsupportedCallbackException;

Parameter

callbacks:
If this parameter specifies a reference to the WebPasswordCallback object, authentication information is set and returned. If it specifies a reference to the WebSSOCallback object, session information is set and returned. If it specifies a reference to another object, UnsupportedCallbackException occurs.

Exceptions

java.io.IOException:
HttpServletRequest does not contain the user ID or password. See Remarks for details about the parameters necessary for obtaining information.

javax.security.auth.callback.UnsupportedCallbackException:
An unsupported callbacks reference is specified.

Return value

Set a value for callbacks so that this value can be returned. This method does not return a value.

Remarks

Authentication information is read in the order shown below.

Figure 15-1 Order of reading authentication information

[Figure]

You can obtain authentication information from HttpServletRequest by using the following parameters: