org.apache.ftpserver.usermanager
Class ClearTextPasswordEncryptor

java.lang.Object
  extended by org.apache.ftpserver.usermanager.ClearTextPasswordEncryptor
All Implemented Interfaces:
PasswordEncryptor

public class ClearTextPasswordEncryptor
extends Object
implements PasswordEncryptor

Password encryptor that does no encryption, that is, keps the password in clear text

Author:
Apache MINA Project

Constructor Summary
ClearTextPasswordEncryptor()
           
 
Method Summary
 String encrypt(String password)
          Returns the clear text password
 boolean matches(String passwordToCheck, String storedPassword)
          Matches an encrypted password with that stored
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClearTextPasswordEncryptor

public ClearTextPasswordEncryptor()
Method Detail

encrypt

public String encrypt(String password)
Returns the clear text password

Specified by:
encrypt in interface PasswordEncryptor
Parameters:
password - The clear text password
Returns:
The encrypted password

matches

public boolean matches(String passwordToCheck,
                       String storedPassword)
Matches an encrypted password with that stored

Specified by:
matches in interface PasswordEncryptor
Parameters:
passwordToCheck - The encrypted password to check
storedPassword - The stored password
Returns:
true if the password match


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.