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 SummaryConstructorsConstructorDescription- SessionUserIdentifier- (String userID, char[] password, String sessionID) Internal constructor.- SessionUserIdentifier- (String userID, String sessionID) Constructor.
- Method SummaryModifier and TypeMethodDescription- booleanChecks if another UserIdentifier equals this one.Gets the session ID.- protected StringFormats the value as a string to add to- paramString.- Methods inherited from class com.iizix.user.UserIdentifier- createSessionUserIdentifier, getLoginContext, getPassword, getUserID, hashCode, toString, updatePassword
- Constructor Details- SessionUserIdentifierConstructor.- 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.
 
- SessionUserIdentifierInternal 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- getSessionIDGets the session ID.
- equalsChecks if another UserIdentifier equals this one. Comparison includes the Session ID.- Overrides:
- equalsin class- UserIdentifier
- Parameters:
- o- An Object.
- Returns:
- Equals flag.
 
- paramStringFormats the value as a string to add to- paramString.- Overrides:
- paramStringin class- UserIdentifier