com.hs.mail.security.login
Class PlaintextPasswordEncoder

java.lang.Object
  extended by com.hs.mail.security.login.PlaintextPasswordEncoder
All Implemented Interfaces:
PasswordEncoder

public class PlaintextPasswordEncoder
extends Object
implements PasswordEncoder

Default password encoder for the case where no password encoder is needed. Encoding results in the same password that was passed in.

Since:
Jul 18, 2007
Author:
Won Chul Doh

Constructor Summary
PlaintextPasswordEncoder()
           
 
Method Summary
 boolean compare(String encoded, char[] plain)
           
 String encode(char[] password)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlaintextPasswordEncoder

public PlaintextPasswordEncoder()
Method Detail

encode

public String encode(char[] password)
Specified by:
encode in interface PasswordEncoder

compare

public boolean compare(String encoded,
                       char[] plain)
Specified by:
compare in interface PasswordEncoder


Copyright © 2011. All Rights Reserved.