| java.lang.Object org.apache.james.userrepository.DefaultUser
All known Subclasses: org.apache.james.userrepository.DefaultJamesUser,
DefaultUser | public class DefaultUser implements User,Serializable(Code) | | Implementation of User Interface. Instances of this class do not allow
the the user name to be reset.
version: CVS $Revision: 494012 $ |
DefaultUser | public DefaultUser(String name, String hashAlg)(Code) | | Standard constructor.
Parameters: name - the String name of this user Parameters: hashAlg - the algorithm used to generate the hash of the password |
DefaultUser | public DefaultUser(String name, String passwordHash, String hashAlg)(Code) | | Constructor for repositories that are construcing user objects from
separate fields, e.g. databases.
Parameters: name - the String name of this user Parameters: passwordHash - the String hash of this users current password Parameters: hashAlg - the String algorithm used to generate the hash of thepassword |
getHashAlgorithm | protected String getHashAlgorithm()(Code) | | Method to access the hashing algorithm of the password.
the name of the hashing algorithm used for this user's password |
getHashedPassword | protected String getHashedPassword()(Code) | | Method to access hash of password
the String of the hashed Password |
getUserName | public String getUserName()(Code) | | Accessor for immutable name
the String of this users name |
setPassword | public boolean setPassword(String newPass)(Code) | | Sets new password from String. No checks made on guessability of
password.
Parameters: newPass - the String that is the new password. true if newPass successfuly hashed |
verifyPassword | public boolean verifyPassword(String pass)(Code) | | Method to verify passwords.
Parameters: pass - the String that is claimed to be the password for this user true if the hash of pass with the current algorithm matchesthe stored hash. |
|
|