org.apache.cactus.client.authentication
Class BasicAuthentication

java.lang.Object
  extended byorg.apache.cactus.client.authentication.AbstractAuthentication
      extended byorg.apache.cactus.client.authentication.BasicAuthentication
All Implemented Interfaces:
Authentication

public class BasicAuthentication
extends AbstractAuthentication

Basic Authentication support.

Since:
1.3
Version:
$Id: BasicAuthentication.java,v 1.9 2003/05/26 11:45:26 cmlenz Exp $
Author:
Vincent Massol, Jason Robertson
See Also:
AbstractAuthentication

Field Summary
 
Fields inherited from class org.apache.cactus.client.authentication.AbstractAuthentication
name, password
 
Constructor Summary
BasicAuthentication(java.lang.String theName, java.lang.String thePassword)
           
 
Method Summary
 void configure(WebRequest theRequest, Configuration theConfiguration)
          Modifies the request so that it will carry authentication information.
protected  void validateName(java.lang.String theName)
          Verify that the user name passed as parameter is a valid user name for the current authentication scheme.
protected  void validatePassword(java.lang.String thePassword)
          Verify that the user password passed as parameter is a valid user password for the current authentication scheme.
 
Methods inherited from class org.apache.cactus.client.authentication.AbstractAuthentication
getName, getPassword, setName, setPassword
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicAuthentication

public BasicAuthentication(java.lang.String theName,
                           java.lang.String thePassword)
Parameters:
theName - user name of the Credential
thePassword - user password of the Credential
Method Detail

validateName

protected void validateName(java.lang.String theName)
Description copied from class: AbstractAuthentication
Verify that the user name passed as parameter is a valid user name for the current authentication scheme.

Specified by:
validateName in class AbstractAuthentication
Parameters:
theName - the user name to validate
See Also:
AbstractAuthentication.validateName(String)

validatePassword

protected void validatePassword(java.lang.String thePassword)
Description copied from class: AbstractAuthentication
Verify that the user password passed as parameter is a valid user password for the current authentication scheme.

Specified by:
validatePassword in class AbstractAuthentication
Parameters:
thePassword - the user password to validate
See Also:
AbstractAuthentication.validatePassword(String)

configure

public void configure(WebRequest theRequest,
                      Configuration theConfiguration)
Description copied from interface: Authentication
Modifies the request so that it will carry authentication information.

Parameters:
theRequest - The request object that will be sent to the Cactus Redirector over HTTP
theConfiguration - The Cactus configuration so that authentication methods can get access to Cactus configuration properties
See Also:
Authentication.configure(WebRequest, Configuration)


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