Class NoSaltedHashService

java.lang.Object
org.exoplatform.web.security.hash.NoSaltedHashService
All Implemented Interfaces:
SaltedHashService

public class NoSaltedHashService extends Object implements SaltedHashService
A SaltedHashService implementation which does not do any hashing at all. It simply returns the plaintext password from getSaltedHash(String) and tests the string equality of password and saltedHash in validate(String, String). This class is intended to be used in tests and maybe also in some real life scenarios where backwards compatibility requires storing of plaintext passwords.
Author:
Peter Palaga