|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.james.user.lib.model.DefaultUser
public class DefaultUser
Implementation of User Interface. Instances of this class do not allow the the user name to be reset.
| Constructor Summary | |
|---|---|
DefaultUser(String name,
String hashAlg)
Standard constructor. |
|
DefaultUser(String name,
String passwordHash,
String hashAlg)
Constructor for repositories that are construcing user objects from separate fields, e.g. |
|
| Method Summary | |
|---|---|
String |
getHashAlgorithm()
Method to access the hashing algorithm of the password. |
String |
getHashedPassword()
Method to access hash of password |
String |
getUserName()
|
boolean |
setPassword(String newPass)
|
boolean |
verifyPassword(String pass)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultUser(String name,
String hashAlg)
name - the String name of this userhashAlg - the algorithm used to generate the hash of the password
public DefaultUser(String name,
String passwordHash,
String hashAlg)
name - the String name of this userpasswordHash - the String hash of this users current passwordhashAlg - the String algorithm used to generate the hash of the password| Method Detail |
|---|
public String getUserName()
getUserName in interface UserUser.getUserName()public boolean verifyPassword(String pass)
verifyPassword in interface UserUser.verifyPassword(java.lang.String)public boolean setPassword(String newPass)
setPassword in interface UserUser.setPassword(java.lang.String)public String getHashedPassword()
public String getHashAlgorithm()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||