public class AdminConfigUser extends VirtualComponentAdapter implements Cloneable
ICON_CRITICAL, ICON_INFORMATION, ICON_NOICON, ICON_QUERY, ICON_QUESTION, ICON_WARNING, MB_ABORTRETRYIGNORE, MB_CANCEL, MB_ENTER, MB_ENTERCANCEL, MB_OK, MB_OKCANCEL, MB_RETRYCANCEL, MB_YESNO, MB_YESNOCANCEL, MBID_CANCEL, MBID_DEFAULT, MBID_ENTER, MBID_IGNORE, MBID_NO, MBID_OK, MBID_RETRY, MBID_YES
Constructor and Description |
---|
AdminConfigUser()
Creates a new user instance.
|
AdminConfigUser(AdminConfigUser original)
Creates a new user copy.
|
AdminConfigUser(String userID,
String data)
Creates a new user from a string in the INI file.
|
AdminConfigUser(String userID,
String pw,
boolean dummy)
Creates an SSL user.
|
AdminConfigUser(Transaction trans)
Creates a new user from a transaction.
|
Modifier and Type | Method and Description |
---|---|
void |
addInvalidLogin(String source)
Adds a new invalid login for this user.
|
void |
appendSlaveInformation(Transaction trans)
Gets the transaction data used for informing slaves of changes for this user.
|
static AdminConfigUser |
changeUserFromController(Transaction trans,
String issuingServer)
Changes the group table to reflect changes from a controller computer.
|
void |
edit(VirtualSessionManager vsm,
VirtualComponentAdapter parent)
Starts editing the dialog box.
|
boolean |
equals(AdminConfigUser u)
Checks if a user definition is equal to another one.
|
AdminConfigUser |
getCopy()
Clones this entry.
|
byte[] |
getDigestA1(String userName,
String realm)
Gets the Digest A1 byte array (MD5) for a user ID used in WWW-authentication.
|
Hashtable<String,String> |
getGlobalVariables(String profileName)
Gets the Global Variables for a SecureLogin profile.
|
Hashtable<String,String> |
getGroups()
Get the groups the user is member of.
|
String |
getListBoxString()
Gets the users list box string.
|
int |
getLoginRetryCount()
Gets the login retry count for this user (0=unlimited).
|
String |
getPassword()
Gets the password for a user that has not group assigned to it
or if it is inactive (a password user).
|
Hashtable<String,String> |
getSessionVariables(String profileName)
Gets the HTTP session variables for a SecureLogin profile.
|
String |
getUserID()
Gets the user ID.
|
boolean |
isActive()
Checks if a user is active.
|
boolean |
isGroupMember(String groupID)
Checks if a user is a member of a group.
|
boolean |
isPasswordChangeRequired()
Checks if the user requires the password to be changed.
|
boolean |
isPasswordMatching(String password,
String source)
Checks if a password is matching.
|
boolean |
isPasswordUser()
Checks if this user has not group assigned to it
or if it is inactive.
|
boolean |
isPhoneNumberRegistered(String number)
Checks if this phone number is one of the registered
ones for the user.
|
boolean |
isPinCodeMatching(String pinCode)
Checks if the pin code matches.
|
void |
onAction(VirtualPanel vp,
String controlID)
Push buttons and menu items generates this event when selected.
|
void |
onCheckedChange(VirtualPanel vp,
VirtualControl control,
String controlID,
int state)
Check boxes and radio buttons generates this event when state is changed on the client side.
|
boolean |
onPanelClosing(VirtualPanel vp)
Called when the close button of a panel is pressed,
but before any other processing has been done.
|
void |
onSelectionChanged(VirtualPanel vp,
VirtualCListBox list,
String controlID,
int line,
int column)
List boxes generates this message.
|
void |
resetInvalidLogin()
Resets the bad login count.
|
void |
setItem(IniFile ini)
Sets the item in the ini file.
|
void |
setNewPassword(String password)
Sets a new password.
|
onAction, onAction, onContentChanged, onContentChanged, onControlEvent, onFocusGained, onFocusLost, onMenuAction, onPropertyChange
onModalPanelCreate, onModalPanelProcessing, onPageActivated, onPanelClose, onPanelCreate, onPanelDestroy
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onPageActivated, onPanelClose, onPanelCreate, onPanelDestroy
public AdminConfigUser()
public AdminConfigUser(String userID, String pw, boolean dummy)
public AdminConfigUser(AdminConfigUser original)
public AdminConfigUser(Transaction trans) throws IOException
IOException
- when the data doesn't have the correct format.public AdminConfigUser(String userID, String data) throws IOException
IOException
- when the data doesn't have the correct format.public AdminConfigUser getCopy()
public String getUserID()
public boolean isActive()
public boolean isGroupMember(String groupID)
public boolean isPinCodeMatching(String pinCode)
public boolean isPhoneNumberRegistered(String number)
public int getLoginRetryCount()
public void addInvalidLogin(String source)
public void resetInvalidLogin()
Calls to this method should synchronize on the user.
public boolean isPasswordUser()
public String getPassword()
public boolean isPasswordMatching(String password, String source)
public boolean isPasswordChangeRequired()
public void setNewPassword(String password)
public void setItem(IniFile ini)
public byte[] getDigestA1(String userName, String realm) throws IOException
IOException
- for failure.public void edit(VirtualSessionManager vsm, VirtualComponentAdapter parent)
public String getListBoxString()
public boolean onPanelClosing(VirtualPanel vp)
onPanelClose
is called.onPanelClosing
in interface VirtualPanelListener
onPanelClosing
in class VirtualPanelAdapter
vp
- The panel issuing the event.VirtualPanelListener.onPanelClose(se.entra.phantom.server.VirtualPanel)
public void onAction(VirtualPanel vp, String controlID)
onAction
in class VirtualComponentAdapter
vp
- The panel issuing the event, parent of the control.controlID
- The control ID issuing the event.public void onSelectionChanged(VirtualPanel vp, VirtualCListBox list, String controlID, int line, int column)
line
and column
parameter are individually set to -1 if no line or column is selected respectively.onSelectionChanged
in interface VirtualComponentListener
onSelectionChanged
in class VirtualComponentAdapter
vp
- The panel issuing the event, parent of the control.list
- The list box control issuing the event.controlID
- The control ID issuing the event.line
- The selected line, or -1 for none.column
- The selected column, or -1 for none.public void onCheckedChange(VirtualPanel vp, VirtualControl control, String controlID, int state)
The state is 0=unchecked, 1=checked and 2=third state (only for check boxes, or PhantomCCheckBox.STATE_UNDETERMINED).
onCheckedChange
in interface VirtualComponentListener
onCheckedChange
in class VirtualComponentAdapter
vp
- The panel issuing the event, parent of the control.control
- The control issuing the event.controlID
- The control ID issuing the event.state
- State (0=unchecked, 1=checked and 2=third state [only for check boxes]).public Hashtable<String,String> getSessionVariables(String profileName)
public Hashtable<String,String> getGlobalVariables(String profileName)
public void appendSlaveInformation(Transaction trans)
public static AdminConfigUser changeUserFromController(Transaction trans, String issuingServer)
public boolean equals(AdminConfigUser u)
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.