org.apache.ftpserver.usermanager
Class ClearTextPasswordEncryptor
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClearTextPasswordEncryptor
public ClearTextPasswordEncryptor()
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 checkstoredPassword
- The stored password
- Returns:
- true if the password match
Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.