Class TextMatchAuthenticator
- java.lang.Object
-
- org.apache.avalon.framework.logger.AbstractLogEnabled
-
- org.apache.fulcrum.security.authenticator.TextMatchAuthenticator
-
- All Implemented Interfaces:
org.apache.avalon.framework.logger.LogEnabled
,Authenticator
public class TextMatchAuthenticator extends org.apache.avalon.framework.logger.AbstractLogEnabled implements Authenticator
This class authenticates by doing a plain text match of the user's passwords. Very insecure! avalon.component name="textmatch-authenticator" avalon.service type="org.apache.fulcrum.security.authenticator.Authenticator"- Version:
- $Id$
- Author:
- Eric Pugh
-
-
Field Summary
-
Fields inherited from interface org.apache.fulcrum.security.authenticator.Authenticator
ROLE
-
-
Constructor Summary
Constructors Constructor Description TextMatchAuthenticator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
authenticate(User user, String password)
Authenticate an username with the specified password.
-
-
-
Constructor Detail
-
TextMatchAuthenticator
public TextMatchAuthenticator()
-
-
Method Detail
-
authenticate
public boolean authenticate(User user, String password) throws DataBackendException
Authenticate an username with the specified password. Returns true if the user password plain text matches the passed in password.- Specified by:
authenticate
in interfaceAuthenticator
- Parameters:
user
- objectpassword
- the user supplied password.- Throws:
DataBackendException
- if there is a problem accessing the storage.
-
-