com.hs.mail.security.login
Interface PasswordEncoder

All Known Implementing Classes:
CryptPasswordEncoder, MD5PasswordEncoder, PlaintextPasswordEncoder

public interface PasswordEncoder

Interface to provide a standard way to translate a plaintext password into a different representation of that password so that the password may be compared with the stored encrypted password without having to decode the encrypted password.

PasswordEncoder are useful because often the stored passwords are encoded with a one way hash function which makes them almost impossible to decode.

Since:
Jul 18, 2007
Author:
Won Chul Doh

Method Summary
 boolean compare(String encoded, char[] plain)
           
 String encode(char[] password)
           
 

Method Detail

encode

String encode(char[] password)

compare

boolean compare(String encoded,
                char[] plain)


Copyright © 2011. All Rights Reserved.