public class User extends Object implements Cloneable
| Modifier and Type | Field and Description | 
|---|---|
static String | 
USER_ID_PROPERTY  | 
| Constructor and Description | 
|---|
User()
Creates a User. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addPropertyChangeListener(PropertyChangeListener listener)
addPropertyChangeListener 
 | 
Object | 
clone()
clone 
 | 
boolean | 
comparePasswords(String aPassword)
This method compares two encrypted strings for equality 
 | 
static String | 
encryptPassword(String aPassword)
This method encrypts the password using MD5 hashing. 
 | 
String | 
getFullName()
Returns the full name of this user 
 | 
NotificationInfo | 
getNotificationInfo()
Returns the notification information for this user 
 | 
String | 
getPassword()
Returns the password for this user 
 | 
String | 
getUserComments()
Returns the user comments for this user 
 | 
String | 
getUserId()
Returns the user id for this user 
 | 
void | 
removePropertyChangeListener(PropertyChangeListener listener)
removePropertyChangeListener 
 | 
void | 
setEncryptedPassword(String aPassword)
Sets the password for this user, assuming that the value passed in is
 already encrypted properly 
 | 
void | 
setFullName(String aFullName)
Sets the full name for this user 
 | 
void | 
setNotificationInfo(NotificationInfo someInfo)
Sets the notificaton information for this user 
 | 
void | 
setUnencryptedPassword(String aPassword)
Sets the password for this user, first encrypting it 
 | 
void | 
setUserComments(String someUserComments)
Sets the user comments for this user 
 | 
void | 
setUserId(String aUserId)
Sets the user id for this user 
 | 
String | 
toString()
Returns a String representation of the user info, used primarily for
 debugging purposes. 
 | 
public static final String USER_ID_PROPERTY
public User()
public void addPropertyChangeListener(PropertyChangeListener listener)
addPropertyChangeListener
listener - a PropertyChangeListener object.public void removePropertyChangeListener(PropertyChangeListener listener)
removePropertyChangeListener
listener - a PropertyChangeListener object.public NotificationInfo getNotificationInfo()
public void setNotificationInfo(NotificationInfo someInfo)
someInfo - the notification infopublic void setUserId(String aUserId)
aUserId - the user idpublic String getUserId()
public void setFullName(String aFullName)
aFullName - the full namepublic String getFullName()
public void setUserComments(String someUserComments)
someUserComments - the user commentspublic String getUserComments()
public void setEncryptedPassword(String aPassword)
aPassword - the encrypted passwordpublic void setUnencryptedPassword(String aPassword) throws IllegalStateException
aPassword - the passwordIllegalStateException - if any.public static String encryptPassword(String aPassword) throws IllegalStateException
aPassword - the password to encryptIllegalStateException - if any.public boolean comparePasswords(String aPassword)
aPassword - the password to check for equalitypublic String getPassword()
Copyright © 2021. All rights reserved.