public class UserPassword extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ADMIN_USER_PASSWORD
Name of property used to store the admin password.
|
static UserPassword |
ROOT
The password for the admin user.
|
Constructor and Description |
---|
UserPassword()
Default constructor.
|
UserPassword(String id,
String orgId,
String plainTextPassword)
Creates a new UserPassword object, encrypting the plainTextPassword and
storing the hash.
|
Modifier and Type | Method and Description |
---|---|
boolean |
checkPassword(String inputPassword)
Checks the given password.
|
boolean |
equals(Object obj) |
String |
getEncryptedPassword() |
String |
getOrganizationId() |
String |
getUid() |
int |
hashCode() |
void |
setEncryptedPassword(String encryptedPassword) |
void |
setOrganizationId(String orgId) |
void |
setPassword(String plainText)
Sets the encrypted password by encrypting the plain text.
|
void |
setUid(String id) |
String |
toString() |
public static final String ADMIN_USER_PASSWORD
public static final UserPassword ROOT
public boolean checkPassword(String inputPassword)
inputPassword
- The password to check.public String getEncryptedPassword()
public String getUid()
public String getOrganizationId()
public void setEncryptedPassword(String encryptedPassword)
encryptedPassword
- the encryptedPassword to setpublic void setUid(String id)
id
- the id to setpublic void setOrganizationId(String orgId)
orgId
- the new organization id to set.public void setPassword(String plainText)
plainText
- the plain text password.Copyright © 2015 Collaborative Software Development Laboratory. All rights reserved.