public class BasicAuthenticator extends java.lang.Object implements Authenticator
This implementation of Authenticator takes a single property, passwords. This property is a plaintext mapping from id to password.
| Modifier and Type | Field and Description | 
|---|---|
static java.lang.String | 
CLASS_VERSION
Class version string 
 | 
| Constructor and Description | 
|---|
BasicAuthenticator()
Constructs a new BasicAuthenticator 
 | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
authenticate(java.lang.String pUserId,
            java.lang.String pPassword)
Returns true if the specified userid and password are an
 authentic combination, false if not. 
 | 
java.util.Properties | 
getPasswords()
Returns the mapping from user id to password 
 | 
java.lang.String | 
getRealm()
Returns the name of the realm to be displayed to the user for this
 authenticator. 
 | 
void | 
setPasswords(java.util.Properties pPasswords)
Sets the mapping from user id to password 
 | 
void | 
setRealm(java.lang.String pRealm)
Sets the name of the realm to be displayed to the user for this
 authenticator. 
 | 
public BasicAuthenticator()
public boolean authenticate(java.lang.String pUserId,
                   java.lang.String pPassword)
authenticate in interface Authenticatorpublic java.util.Properties getPasswords()
public void setPasswords(java.util.Properties pPasswords)
public java.lang.String getRealm()
public void setRealm(java.lang.String pRealm)