public abstract class AbstractAuthentication extends java.lang.Object implements Authentication
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 and Description |
---|
AbstractAuthentication(java.lang.String theName,
java.lang.String thePassword) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName() |
java.lang.String |
getPassword() |
void |
setName(java.lang.String theName)
Sets the user name.
|
void |
setPassword(java.lang.String thePassword)
Sets the user password of the Credential.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
configure
public AbstractAuthentication(java.lang.String theName, java.lang.String thePassword)
theName
- user name of the CredentialthePassword
- user password of the Credentialpublic final void setName(java.lang.String theName)
theName
- user name of the Credentialpublic final java.lang.String getName()
public final void setPassword(java.lang.String thePassword)
thePassword
- the user password of the Credentialpublic final java.lang.String getPassword()
Copyright © 2000-2004 Apache Software Foundation. All Rights Reserved.