Package com.iizix.user
Class SessionUserIdentifier
java.lang.Object
com.iizix.user.UserIdentifier
com.iizix.user.SessionUserIdentifier
The User identifier class holds the information about a user or a returning user. The User may, if the application allows it, run several individual session or the same virtual session in parallel. This is configurable, and allows the same user to run different independent sessions by assigning a session ID.
- Author:
- Christopher Mindus
Constructor Summary
ConstructorDescriptionSessionUserIdentifier
(String userID, char[] password, String sessionID) Internal constructor.SessionUserIdentifier
(String userID, String sessionID) Constructor.Method Summary
Modifier and TypeMethodDescriptionboolean
Checks if another UserIdentifier equals this one.Gets the session ID.protected String
Formats the value as a string to add toparamString
.Methods inherited from class com.iizix.user.UserIdentifier
createSessionUserIdentifier, getLoginContext, getPassword, getUserID, hashCode, toString, updatePassword
Constructor Details
SessionUserIdentifier
Constructor.- Parameters:
userID
- User ID, non-empty, not null.sessionID
- The session ID, not null, but can be empty.- Throws:
NullPointerException
- If any parameter is null.IllegalArgumentException
- If any parameter is empty.
SessionUserIdentifier
Internal constructor.- Parameters:
userID
- User ID, non-empty, not null.password
- The password, non-empty, not null.sessionID
- The session ID, not null, but can be empty.
Method Details
getSessionID
Gets the session ID.equals
Checks if another UserIdentifier equals this one. Comparison includes the Session ID.- Overrides:
equals
in classUserIdentifier
- Parameters:
o
- An Object.- Returns:
- Equals flag.
paramString
Formats the value as a string to add toparamString
.- Overrides:
paramString
in classUserIdentifier