Save This Page
Home » cactus-1.8.0-src » org.apache.cactus.client.authentication » [javadoc | source]
org.apache.cactus.client.authentication
abstract public class: AbstractAuthentication [javadoc | source]
java.lang.Object
   org.apache.cactus.client.authentication.AbstractAuthentication

All Implemented Interfaces:
    Authentication

Direct Known Subclasses:
    FormAuthentication, BasicAuthentication

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'>".
Constructor:
 public AbstractAuthentication(String theName,
    String thePassword) 
    Parameters:
    theName - user name of the Credential
    thePassword - user password of the Credential
Method from org.apache.cactus.client.authentication.AbstractAuthentication Summary:
getName,   getPassword,   setName,   setPassword
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.cactus.client.authentication.AbstractAuthentication Detail:
 public final String getName() 
 public final String getPassword() 
 public final  void setName(String theName) 
    Sets the user name.
 public final  void setPassword(String thePassword) 
    Sets the user password of the Credential.