Hitachi

uCosminexus Application Server Security Management Guide


15.24 The WebPasswordCallback class

Description

An implementation class that passes authentication information from a Web application to a login module via CallbackHandler.

The package name of the WebPasswordCallback class is com.cosminexus.admin.auth.callback.

Syntax
class WebPasswordCallback implements javax.security.auth.callback.Callback
{
  public static final int GETPW;
  public static final int NOPW;
 
  public WebPasswordCallback();
 
  public void setName(String name);
  public String getName();
  public void setPassword(String password);
  public String getPassword();
  public void setRequest(HttpServletRequest req);
  public HttpServletRequest getRequest();
  public void setResponse(HttpServletResponse res);
  public HttpServletResponse getResponse();
  public void setAttributeEntries(AttributeEntry[] aliases);
  public AttributeEntry[] getAttributeEntries();
 
  public void setOption(int option);
  public int getOption();
  public void setTagID(String tid);
  public String getTagID();
  public void setTagEntry(String entry);
  public String getTagEntry();
}
Member attributes
GETPW:

Requests that all information should be set for this Callback object.

NOPW:

Requests that all information except user IDs and passwords should be set for this Callback object. (In this case, the forward/include method is not executed for handling urls.)

Constructor and methods

Constructor/method name

Functionality

WebPasswordCallback constructor

Creates an instance of the WebPasswordCallback class.

getAttributeEntries method

Obtains a reference to the object that stores the list of attributes. The reference is specified by the setAttributeEntries method.

getName method

Obtains the user ID specified by the setName method.

getOption method

Obtains the configured option.

getPassword method

Obtains the password specified by the setPassword method.

getRequest method

Obtains a reference to HttpServletRequest. The reference is specified by the setRequest method.

getResponse method

Obtains a reference to HttpServletResponse. The reference is specified by the setResponse method.

getTagEntry method

Obtains the entry element specified by the setTagEntry method.

getTagID method

Obtains TagID specified by the setTagID method.

setAttributeEntries method

Stores into this object a reference to the object that holds the list of attributes. The reference is specified by the parameter.

setName method

Stores the user ID specified by the parameter into this object.

setOption method

Requests the settings configured with CallbackHandler.

setPassword method

Stores the password specified by the parameter into this object.

setRequest method

Stores a reference to HttpServletRequest into this object. The reference is specified by the parameter.

setResponse method

Stores a reference to HttpServletResponse into this object. The reference is specified by the parameter.

setTagEntry method

Requests the settings configured with the CallbackHandler method. Stores the login tag's entry element as specified by the parameter.

setTagID method

Requests the settings configured with the CallbackHandler method. Stores the login tag's id element as specified by the parameter.

Organization of this section