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
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractAuthentication
public AbstractAuthentication(String theName,
String thePassword)
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.