    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Class org.w3c.jigsaw.resources.PasswordEditorFrame

    java.lang.Object
       |
       +----org.w3c.tools.resources.AttributeHolder
               |
               +----org.w3c.tools.resources.Resource
                       |
                       +----org.w3c.tools.resources.FramedResource
                               |
                               +----org.w3c.tools.resources.ResourceFrame
                                       |
                                       +----org.w3c.tools.resources.ProtocolFrame
                                               |
                                               +----org.w3c.jigsaw.frames.HTTPFrame
                                                       |
                                                       +----org.w3c.jigsaw.frames.PostableFrame
                                                               |
                                                               +----org.w3c.jigsaw.resources.PasswordEditorFrame

public class PasswordEditorFrame
extends PostableFrame

##

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

##

PasswordEditorFrame()

##

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

##

ATTR_REALM

     protected static int ATTR_REALM

  Attribute index - The name of the realm to edit.

##

PasswordEditorFrame

     public PasswordEditorFrame()

##

getRealm

     public String getRealm()

  Get the name of the realm to edit.

  Returns:
    The name of the realm to edit, as a String.

changePassword

     protected synchronized boolean changePassword(String username,
                                                   String oldpassword,
                                                   String newpassword)

generateForm

     protected HtmlGenerator generateForm(String msg)

generateForm

     protected final HtmlGenerator generateForm()

get

     public Reply get(Request request) throws ProtocolException, ResourceException

  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.
  Throws: ProtocolException
    If processing the request failed.
  Throws: ResourceException
    If this resource got a fatal error.
  Overrides:
    get in class PostableFrame

handle

     public Reply handle(Request request,
                         URLDecoder data) throws ProtocolException

  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.
  Throws: ProtocolException
    If processing the request failed.
  Overrides:
    handle in class PostableFrame

    All Packages  Class Hierarchy  This Package  Previous  Next  Index