org.apache.cactus.client.authentication
class AbstractAuthentication

java.lang.Object
  |
  +--org.apache.cactus.client.authentication.AbstractAuthentication
Direct Known Subclasses:
BasicAuthentication
Known Advisors:
LogAspect

public abstract class AbstractAuthentication
extends java.lang.Object

This class was designed with the simple assumption that ALL authentication implementations will have a String Name and a String Password. Two abstract functions validateName and validatePassword provide for concrete implementations to perform character validation. All the work is then done in the configure abstract function. In the BasicAuthentication class, for example, the configuring is done by adding the request property "Authorization" with a value "Basic <base64encode of 'userid:password'>".

Since:
1.3
Version:
$Id: AbstractAuthentication.java,v 1.2 2002/07/24 20:46:48 vmassol Exp $
Author:
Vincent Massol , Jason Robertson

Constructor Summary
AbstractAuthentication(String theName, String thePassword)
           
 
Method Summary
abstract  void configure(WebRequest theRequest)
           
 String getName()
           
 void setName(String theName)
           Affected by: LogAspect
 void setPassword(String thePassword)
           Affected by: LogAspect
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractAuthentication

public AbstractAuthentication(String theName,
                              String thePassword)
Method Detail

configure

public abstract void configure(WebRequest theRequest)

getName

public String getName()

setName

public void setName(String theName)
Affected by:
around() in LogAspect.

setPassword

public void setPassword(String thePassword)
Affected by:
around() in LogAspect.


Copyright © 2000-2002 Apache Software Foundation. All Rights Reserved.