All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class w3c.jigsaw.contrib.PasswordEditor

java.lang.Object
   |
   +----w3c.tools.store.AttributeHolder
           |
           +----w3c.tools.store.Resource
                   |
                   +----w3c.jigsaw.resources.HTTPResource
                           |
                           +----w3c.jigsaw.resources.FilteredResource
                                   |
                                   +----w3c.jigsaw.resources.FileResource
                                           |
                                           +----w3c.jigsaw.forms.PostableResource
                                                   |
                                                   +----w3c.jigsaw.contrib.PasswordEditor

public class PasswordEditor
extends PostableResource
A resource that allows you to change your password. This resource should be suitably protected when installed, of course.


Variable Index

 o ATTR_REALM
Attribute index - The name of the realm to edit.

Constructor Index

 o PasswordEditor()
Empty constructor for dynamic instantiation.

Method Index

 o changePassword(String, String, String)
 o generateForm()
 o generateForm(String)
 o get(Request)
Handle a get request on the password editor.
 o getRealm()
Get the name of the realm to edit.
 o handle(Request, URLDecoder)
Handle a post request.

Variables

 o ATTR_REALM
 protected static int ATTR_REALM
Attribute index - The name of the realm to edit.

Constructors

 o PasswordEditor
 public PasswordEditor()
Empty constructor for dynamic instantiation.

Methods

 o getRealm
 public String getRealm()
Get the name of the realm to edit.

Returns:
The name of the realm to edit, as a String.
 o changePassword
 protected synchronized boolean changePassword(String username,
                                               String oldpassword,
                                               String newpassword)
 o generateForm
 protected HtmlGenerator generateForm(String msg)
 o generateForm
 protected final HtmlGenerator generateForm()
 o get
 public Reply get(Request request)
Handle a get request on the password editor. Dump a form suitable for editing a user entry.

Parameters:
request - The request to handle.
Returns:
An HTTP Reply instance.
Overrides:
get in class PostableResource
 o handle
 public Reply handle(Request request,
                     URLDecoder data)
Handle a post request. Do change the password, when possible.

Parameters:
request - The request to handle.
data - The form decoded data.
Returns:
An HTTP Reply instance.
Overrides:
handle in class PostableResource

All Packages  Class Hierarchy  This Package  Previous  Next  Index