org.apache.ftpserver.usermanager
Class ClearTextPasswordEncryptor
java.lang.Object
org.apache.ftpserver.usermanager.ClearTextPasswordEncryptor
- All Implemented Interfaces:
- PasswordEncryptor
public class ClearTextPasswordEncryptor
- extends java.lang.Object
- implements PasswordEncryptor
Password encryptor that does no encryption, that is, keps the
password in clear text
- Version:
- $Rev$, $Date$
- Author:
- The Apache MINA Project (dev@mina.apache.org)
Method Summary |
java.lang.String |
encrypt(java.lang.String password)
Returns the clear text password |
boolean |
matches(java.lang.String passwordToCheck,
java.lang.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 |
ClearTextPasswordEncryptor
public ClearTextPasswordEncryptor()
encrypt
public java.lang.String encrypt(java.lang.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(java.lang.String passwordToCheck,
java.lang.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.