Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1015 | dev | 1 | package ak.hostadmiral.core.model; |
2 | |||
3 | import ak.hostadmiral.util.ModelException; |
||
4 | |||
5 | /** |
||
6 | * A password store must implement java.lang.Cloneable interface. |
||
7 | */ |
||
8 | public interface PasswordStore |
||
9 | { |
||
10 | /** |
||
11 | * returns digest name, e.g. "MD5" |
||
12 | */ |
||
13 | public String getDigest(); |
||
14 | |||
15 | /** |
||
16 | * to store to persistent store |
||
17 | */ |
||
18 | public String getPassword(); |
||
19 | |||
20 | /** |
||
21 | * to store from persistent store |
||
22 | */ |
||
23 | public void setPassword(String password); |
||
24 | |||
25 | /** |
||
26 | * to set by user |
||
27 | */ |
||
28 | public void setNewPassword(String password) |
||
29 | throws ModelException; |
||
30 | |||
31 | public boolean checkPassword(String password) |
||
32 | throws ModelException; |
||
33 | } |