|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.james.impl.user.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(java.lang.String name,
java.lang.String hashAlg)
Standard constructor. |
|
DefaultUser(java.lang.String name,
java.lang.String passwordHash,
java.lang.String hashAlg)
Constructor for repositories that are construcing user objects from separate fields, e.g. |
|
| Method Summary | |
|---|---|
java.lang.String |
getHashAlgorithm()
Method to access the hashing algorithm of the password. |
java.lang.String |
getHashedPassword()
Method to access hash of password |
java.lang.String |
getUserName()
Return the user name of this user |
boolean |
setPassword(java.lang.String newPass)
Sets new password from String. |
boolean |
verifyPassword(java.lang.String pass)
Return true if pass matches password of this user. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultUser(java.lang.String name,
java.lang.String hashAlg)
name - the String name of this userhashAlg - the algorithm used to generate the hash of the password
public DefaultUser(java.lang.String name,
java.lang.String passwordHash,
java.lang.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 java.lang.String getUserName()
User
getUserName in interface UserUser.getUserName()public boolean verifyPassword(java.lang.String pass)
User
verifyPassword in interface Userpass - the password to test
User.verifyPassword(java.lang.String)public boolean setPassword(java.lang.String newPass)
User
setPassword in interface UsernewPass - the String that is the new password.
User.setPassword(java.lang.String)public java.lang.String getHashedPassword()
public java.lang.String getHashAlgorithm()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||