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'>".
- since:
1.3 -
- version:
$ - Id: AbstractAuthentication.java 238991 2004-05-22 11:34:50Z vmassol $
| Constructor: |
public AbstractAuthentication(String theName,
String thePassword) {
setName(theName);
setPassword(thePassword);
}
Parameters:
theName - user name of the Credential
thePassword - user password of the Credential
|
| Method from org.apache.cactus.client.authentication.AbstractAuthentication Detail: |
public final String getName() {
return this.name;
}
|
public final String getPassword() {
return this.password;
}
|
public final void setName(String theName) {
this.name = theName;
}
|
public final void setPassword(String thePassword) {
this.password = thePassword;
}
Sets the user password of the Credential. |