001 package net.databinder.auth.data;
002
003 import java.security.MessageDigest;
004
005 /** Password interface for DataUser. */
006 public interface DataPassword {
007 /** @return true if the given password matches this object's */
008 boolean matches(String password);
009
010 /** Change this object's password to the given one. */
011 void change(String newPassword);
012
013 /** Update digest with password, to bind it to the cookie token. */
014 void update(MessageDigest digest);
015 }