atg.servlet.pipeline
Class BasicAuthenticator

java.lang.Object
  extended by atg.servlet.pipeline.BasicAuthenticator
All Implemented Interfaces:
Authenticator

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.


Field Summary
static java.lang.String CLASS_VERSION
          Class version string
 
Constructor Summary
BasicAuthenticator()
          Constructs a new BasicAuthenticator
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Class version string

Constructor Detail

BasicAuthenticator

public BasicAuthenticator()
Constructs a new BasicAuthenticator

Method Detail

authenticate

public 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.

Specified by:
authenticate in interface Authenticator

getPasswords

public java.util.Properties getPasswords()
Returns the mapping from user id to password


setPasswords

public void setPasswords(java.util.Properties pPasswords)
Sets the mapping from user id to password


getRealm

public java.lang.String getRealm()
Returns the name of the realm to be displayed to the user for this authenticator.


setRealm

public void setRealm(java.lang.String pRealm)
Sets the name of the realm to be displayed to the user for this authenticator.