class OsUserAccount extends java.lang.Object implements SecurityConstants
| Modifier and Type | Field and Description |
|---|---|
private DateValue |
date
Date password was last changed.
|
private java.lang.String |
description
Description of the OS user.
|
private boolean |
enabled
Enabled status of this account.
|
private byte[] |
password
Hashed password for this account.
|
private boolean |
protect
Protected status of the password.
|
private java.lang.String |
subjectId
The subject ID this account represents.
|
private TimeValue |
time
Time password was last changed.
|
AUTH_ACTION_ABORT, AUTH_ACTION_CONTINUE, AUTH_ACTION_DONE, AUTH_ACTION_RETRY, AUTH_MODE_CUSTOM, AUTH_MODE_HIGHEST, AUTH_MODE_IDPW, AUTH_MODE_LOWEST, AUTH_MODE_NONE, AUTH_MODE_X509, AUTH_MODE_X509_IDPW, AUTH_REQ_PROCESS, AUTH_REQ_PROGRAM, AUTH_REQ_SSO, AUTH_REQ_USER, AUTH_RESULT_INSUFFICIENT_RIGHTS, AUTH_RESULT_INVALID_PASSWORD, AUTH_RESULT_INVALID_USERID, AUTH_RESULT_NONE, AUTH_RESULT_PER_USER_SESSION_LIMIT_REACHED, AUTH_RESULT_SKIP_TO_NEXT, AUTH_RESULT_SUCCESS, AUTH_RESULT_SYSTEM_SESSION_LIMIT_REACHED, AUTH_RESULT_UNSPECIFIED_FAILURE, PKT_SIZE_SKIP_TO_NEXT| Constructor and Description |
|---|
OsUserAccount(java.lang.String subjectId,
java.lang.String description,
boolean enabled,
byte[] password,
DateValue date,
TimeValue time)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) java.lang.String |
getDescription()
Gets the description of the OS user.
|
(package private) byte[] |
getPassword()
Gets the hashed password for this acoount.
|
(package private) DateValue |
getPasswordDate()
Gets the last password change date.
|
(package private) TimeValue |
getPasswordTime()
Gets the last password change time.
|
(package private) java.lang.String |
getSubjectId()
Gets the subject ID for this account.
|
(package private) boolean |
isEnabled()
Gets the enabled status of this account.
|
boolean |
isProtected()
Gets the protected status of the password.
|
(package private) void |
setEnabled(boolean enabled)
Changes the enabled status of this account.
|
(package private) void |
setPassword(byte[] password,
DateValue date,
TimeValue time)
Sets a new hashed password for this acoount.
|
private java.lang.String subjectId
private java.lang.String description
private boolean enabled
private boolean protect
private byte[] password
private DateValue date
private TimeValue time
OsUserAccount(java.lang.String subjectId,
java.lang.String description,
boolean enabled,
byte[] password,
DateValue date,
TimeValue time)
subjectId - Subject ID also known as account name.description - Description of the OS user.enabled - true if this account is enabledpassword - Hashed password data, may be null.date - The date the password was last changed.time - The time the password was last changed.boolean isEnabled()
true if the account is enabledvoid setEnabled(boolean enabled)
enabled - true if the account is enabledpublic boolean isProtected()
true if the password is protectedjava.lang.String getSubjectId()
java.lang.String getDescription()
byte[] getPassword()
void setPassword(byte[] password,
DateValue date,
TimeValue time)
password - The hashed password data.date - The date the password was last changed.time - The time the password was last changed.DateValue getPasswordDate()
TimeValue getPasswordTime()