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
Creates an instance of the WebPasswordCallback class.
Obtains a reference to the object that stores the list of attributes. The reference is specified by the setAttributeEntries method.
Obtains the user ID specified by the setName method.
Obtains the configured option.
Obtains the password specified by the setPassword method.
Obtains a reference to HttpServletRequest. The reference is specified by the setRequest method.
Obtains a reference to HttpServletResponse. The reference is specified by the setResponse method.
Obtains the entry element specified by the setTagEntry method.
Obtains TagID specified by the setTagID method.
Stores into this object a reference to the object that holds the list of attributes. The reference is specified by the parameter.
Stores the user ID specified by the parameter into this object.
Requests the settings configured with CallbackHandler.
Stores the password specified by the parameter into this object.
Stores a reference to HttpServletRequest into this object. The reference is specified by the parameter.
Stores a reference to HttpServletResponse into this object. The reference is specified by the parameter.
Requests the settings configured with the CallbackHandler method. Stores the login tag's entry element as specified by the parameter.
Requests the settings configured with the CallbackHandler method. Stores the login tag's id element as specified by the parameter.
- Organization of this section
-