|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.adf.security.store.ArcGISSecurityUser
public class ArcGISSecurityUser
This class encapsulates the user information for the security store. You can use the ArcGISSecurityUser object to add, modify or get users from the security store.
| Field Summary | |
|---|---|
protected java.lang.String |
strEmail
|
protected java.lang.String |
strFullName
|
protected java.lang.String |
strMD5HashPwd
|
protected java.lang.String |
strSecretAnswer
|
protected java.lang.String |
strSecretQuestion
|
protected java.lang.String |
strSHAHashPwd
|
protected java.lang.String |
strUserName
|
| Constructor Summary | |
|---|---|
ArcGISSecurityUser(java.lang.String username)
Class constructor that takes in the username This constuctor is used when the security API are returning user information. |
|
ArcGISSecurityUser(java.lang.String fullname,
java.lang.String username)
Class constructor that takes in the full name of the user along with a unique identifier for this user. |
|
ArcGISSecurityUser(java.lang.String fullname,
java.lang.String username,
java.lang.String email,
java.lang.String secretQuest)
Class constructor that takes in the full name, unique identifier for user, email address, a secret question and answer to the ecret question. |
|
ArcGISSecurityUser(java.lang.String fullname,
java.lang.String username,
java.lang.String plainPassword,
java.lang.String email,
java.lang.String secretQuest,
java.lang.String secretAns)
Class constructor that takes in the full name, unique identifier for user, password in plain text, email address, a secret question and answer to the secret question. |
|
| Method Summary | |
|---|---|
protected java.util.HashMap<java.lang.String,java.lang.String> |
getAllProperties()
Returns a hashmap of all the properties that have been set on this object. |
java.lang.String |
getEmail()
Returns the email of the user. |
java.lang.String |
getFullName()
Returns the fullname for the user. |
java.lang.String |
getMD5HashPwd()
Return the MD5 hash of the password |
java.lang.String |
getSecretAnswer()
Get the secret question assigned to the user |
java.lang.String |
getSecretQuestion()
Get the secret question assigned to the user |
java.lang.String |
getSHAHashPwd()
Return the SHA1 hash of the password |
java.lang.String |
getUserName()
Returns the unique identifier for the user. |
void |
setEmail(java.lang.String email)
Set the email address of a user. |
void |
setFullName(java.lang.String fullName)
Set the full name of the user. |
void |
setPassword(java.lang.String password)
Set the plain text password for the user. |
void |
setSecretAnswer(java.lang.String secretAns)
Set the answer to the secret question for a user, this will be used to retrieve/reset password if a user forgets his password |
void |
setSecretQuestion(java.lang.String secretQuest)
Set the secret question for a user, this will be used to retrieve/reset password if a user forgets his password |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String strFullName
protected java.lang.String strUserName
protected java.lang.String strMD5HashPwd
protected java.lang.String strSHAHashPwd
protected java.lang.String strSecretQuestion
protected java.lang.String strSecretAnswer
protected java.lang.String strEmail
| Constructor Detail |
|---|
public ArcGISSecurityUser(java.lang.String fullname,
java.lang.String username,
java.lang.String plainPassword,
java.lang.String email,
java.lang.String secretQuest,
java.lang.String secretAns)
throws ArcGISSecurityException
fullname - - String representing the full name of the userusername - - String representing the unique identifier for the userpassword - - String representing the plain text passwordemail - - String representing the email address of the user. This parameter can be null.secretQuest - - String representing a secret question. The user will be prompted
to give the answer to this question in case he forgets the password.
This parameter can be null.secretAns - - String representing the answer to the secret question. This parameter can
be null only if secretQuest is null.
ArcGISSecurityException - - if input parameter is null
public ArcGISSecurityUser(java.lang.String fullname,
java.lang.String username,
java.lang.String email,
java.lang.String secretQuest)
throws ArcGISSecurityException
fullname - - String representing the full name of the user. This parameter can be null.username - - String representing the unique identifier for the useremail - - String representing the email address of the user. This parameter can be null.secretQuest - - String representing the secret question of the user. This parameter can be null.
ArcGISSecurityException - - if input parameter is null
public ArcGISSecurityUser(java.lang.String username)
throws ArcGISSecurityException
username - - String representing the unique identifier for the user
ArcGISSecurityException - - if input parameter is null
public ArcGISSecurityUser(java.lang.String fullname,
java.lang.String username)
throws ArcGISSecurityException
username - - String representing the unique identifier for the user
ArcGISSecurityException - - if input parameter is null| Method Detail |
|---|
public void setFullName(java.lang.String fullName)
throws ArcGISSecurityException
fullName - - String representing the full name of the user
ArcGISSecurityException - - if input parameter is null
public void setPassword(java.lang.String password)
throws ArcGISSecurityException
password - - String representing the plain text password for the user
ArcGISSecurityException - - if input parameter is nullpublic java.lang.String getUserName()
public java.lang.String getFullName()
public void setEmail(java.lang.String email)
throws ArcGISSecurityException
email - - String representing the email address
ArcGISSecurityException - - if input parameter is nullpublic java.lang.String getEmail()
public void setSecretQuestion(java.lang.String secretQuest)
throws ArcGISSecurityException
secretQuest - - String representing the secret question
ArcGISSecurityException - if the input parameter is nullpublic java.lang.String getSecretQuestion()
public void setSecretAnswer(java.lang.String secretAns)
throws ArcGISSecurityException
secretQuest - - String representing the answer to the secret question
ArcGISSecurityException - if the input parameter is nullpublic java.lang.String getSecretAnswer()
public java.lang.String getMD5HashPwd()
public java.lang.String getSHAHashPwd()
protected java.util.HashMap<java.lang.String,java.lang.String> getAllProperties()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||