Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
package ak.hostadmiral.core.model;
import ak.hostadmiral.util.ModelException;
/**
* A password store must implement java.lang.Cloneable interface.
*/
public interface PasswordStore
{
/**
* returns digest name, e.g. "MD5"
*/
public String getDigest();
/**
* to store to persistent store
*/
public String getPassword();
/**
* to store from persistent store
*/
public void setPassword(String password);
/**
* to set by user
*/
public void setNewPassword(String password)
throws ModelException;
public boolean checkPassword(String password)
throws ModelException;
}