| java.lang.Object org.apache.cactus.client.authentication.AbstractAuthentication
All known Subclasses: org.apache.cactus.client.authentication.FormAuthentication, org.apache.cactus.client.authentication.BasicAuthentication,
AbstractAuthentication | abstract public class AbstractAuthentication implements Authentication(Code) | | 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 $ |
AbstractAuthentication | public AbstractAuthentication(String theName, String thePassword)(Code) | | Parameters: theName - user name of the Credential Parameters: thePassword - user password of the Credential |
getName | final public String getName()(Code) | | the user name of the Credential |
getPassword | final public String getPassword()(Code) | | the user password of the Credential |
setName | final public void setName(String theName)(Code) | | Sets the user name.
Parameters: theName - user name of the Credential |
setPassword | final public void setPassword(String thePassword)(Code) | | Sets the user password of the Credential.
Parameters: thePassword - the user password of the Credential |
|
|