|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.adf.security.store.ArcGISSecurityStore
public class ArcGISSecurityStore
The methods on this class can be used to access a particular implementation of the security store. The class uses the underlying implementation defined by the class name in the constructor to access the security store. You can write custom implementation to access a particular data store by implementing the SecurityStore interface and creating a ArcGISSecurityStore object for that implementation. ArcGIS Web Manager will use ArcGISSecurityStore to access the security store.
| Field Summary | |
|---|---|
protected SecurityStore |
secStore
|
| Constructor Summary | |
|---|---|
ArcGISSecurityStore(java.lang.String implName)
Constructor for ArcGISSecurityStore class. |
|
| Method Summary | |
|---|---|
void |
addRole(ArcGISSecurityRole role)
Add a new role to the security store. |
void |
addRolesToUser(java.lang.String userName,
java.lang.String[] roleList)
Assign list of roles to a user. |
void |
addUser(ArcGISSecurityUser user)
Add a user to the security store. |
void |
addUsersToRole(java.lang.String roleName,
java.lang.String[] userList)
Assign a role to a bunch of users. |
void |
close()
Close all connections to the security store. |
void |
deleteRole(java.lang.String roleName)
Delete a role from the security store. |
void |
deleteRolesFromUser(java.lang.String userName,
java.lang.String[] roleList)
Delete list of roles that are assigned to a user. |
void |
deleteUser(java.lang.String userName)
Delete a user from the security store. |
void |
deleteUsersFromRole(java.lang.String roleName,
java.lang.String[] userList)
Delete a particular role from a bunch of users. |
java.lang.String |
forgotUserPassword(java.lang.String userName,
java.lang.String secretQuest,
java.lang.String secretAns)
Method that will reset the user password to some random string, by checking the answer provided to the secret question provided by the user when adding user to the security store. |
java.util.List<ArcGISSecurityRole> |
getAllRoles()
Return list of roles that are present in the security store. |
java.util.List<ArcGISSecurityUser> |
getAllUsers()
Returns a list of users that represent all the users currently in the security store. |
ArcGISSecurityRole |
getRole(java.lang.String roleName)
Call this method to get information regarding a particular role in the security store. |
java.util.List<ArcGISSecurityRole> |
getRolesForUser(java.lang.String userName)
Return a list of roles that are assigned to a particular user. |
ArcGISSecurityUser |
getUser(java.lang.String userName)
Call this method to get information regarding a particular user in the security store. |
java.lang.String |
getUserSecretQuestion(java.lang.String userName)
Returns the secret question that has been set for a user. |
java.util.List<ArcGISSecurityUser> |
getUsersForRole(java.lang.String roleName)
Return list of user who are assigned a particular role. |
void |
init(java.util.Map<java.lang.String,java.lang.String> paramsMap)
Initialize the underlying implementation of the security store. |
boolean |
isReadOnly()
Whether the data store is ready only or not depends on the underlying implementation that is used by the ArcGISSecurityStore object. |
void |
modifyRole(ArcGISSecurityRole role)
Modify the information for a role in the security store. |
void |
modifyUser(ArcGISSecurityUser user)
Modify the full name, password or other user information contained in the security store. |
void |
reinitialize()
Reinitialize the connection to data stores. |
boolean |
testConnection(java.util.Map<java.lang.String,java.lang.String> paramsMap)
Test the connection to the data store |
boolean |
validateUser(java.lang.String userName,
java.lang.String password)
Check the user credentials with the information available in the security store. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected SecurityStore secStore
| Constructor Detail |
|---|
public ArcGISSecurityStore(java.lang.String implName)
throws ArcGISSecurityException
implName - - String representing the fully qualified name of the class
implementing the SecurityStore interface.
ArcGISSecurityException - - if a new instance of the input class cannot
be created.| Method Detail |
|---|
public void init(java.util.Map<java.lang.String,java.lang.String> paramsMap)
throws ArcGISSecurityException
connectParams - - It contains information that the ArcGISSecurityStore
uses to connect to a particular data store.
ArcGISSecurityException
public void reinitialize()
throws ArcGISSecurityException
ArcGISSecurityException - - if connection cannot be initializedpublic boolean isReadOnly()
public boolean testConnection(java.util.Map<java.lang.String,java.lang.String> paramsMap)
throws ArcGISSecurityException
connectParams - - connection parameters for the securit data store
ArcGISSecurityException - - if there is an error while connecting
to the security data store
public void addUser(ArcGISSecurityUser user)
throws ArcGISSecurityException
ArcGISSecurityUser - - reference to a ArcGISSecurityUser object
that contains the user information.
ArcGISSecurityException - - if the ArcGISSecurityUser cannot
be added to the security store.
public void deleteUser(java.lang.String userName)
throws ArcGISSecurityException
userName - - unique identifier of the user who is to be deleted.
ArcGISSecurityException - - if the user cannot be deleted from
the security store.
public void modifyUser(ArcGISSecurityUser user)
throws ArcGISSecurityException
ArcGISSecurityUser - - reference to ArcGISSecurityUser
object that contains the ArcGISSecurityUser information.
ArcGISSecurityException - - if the user information in the security store
cannot be in modified.
public java.lang.String getUserSecretQuestion(java.lang.String userName)
throws ArcGISSecurityException
userName - - String represnting the unique identifier for a user.
ArcGISSecurityException - - if input parameter is null or cannot access security store
public java.lang.String forgotUserPassword(java.lang.String userName,
java.lang.String secretQuest,
java.lang.String secretAns)
throws ArcGISSecurityException
userName - - String represnting the unique identifier for a user.secretQuest - - String represnting secret question set for a usersecretAns - - String represnting the answer to the secret question
ArcGISSecurityException - - if the password cannot be reset
public java.util.List<ArcGISSecurityUser> getAllUsers()
throws ArcGISSecurityException
ArcGISSecurityException - - if users cannot be retrieved from the security store
public void addRole(ArcGISSecurityRole role)
throws ArcGISSecurityException
role - - reference to ArcGISSecurityRole object that contains role information
ArcGISSecurityException - - if role cannot be added to the security store
public void deleteRole(java.lang.String roleName)
throws ArcGISSecurityException
roleName - - name of the role to be deleted
ArcGISSecurityException - - if the role cannot be deleted from the security store.
public void modifyRole(ArcGISSecurityRole role)
throws ArcGISSecurityException
role - - reference to the ArcGISSecurityRole object that contains the
modified role information.
ArcGISSecurityException - - if role information cannot be modified.
public java.util.List<ArcGISSecurityRole> getAllRoles()
throws ArcGISSecurityException
ArcGISSecurityException - - if a role cannot be retrieved from the security store
public ArcGISSecurityUser getUser(java.lang.String userName)
throws ArcGISSecurityException
userName - - unique name of the user for whom to retrieve information.
ArcGISSecurityException - - if user information cannot be retrieved from the security store.
public ArcGISSecurityRole getRole(java.lang.String roleName)
throws ArcGISSecurityException
roleName - - unique name of the role for whom to retrieve information.
ArcGISSecurityException - - if role information cannot be retrieved from the security store
public void addRolesToUser(java.lang.String userName,
java.lang.String[] roleList)
throws ArcGISSecurityException
userName - - unique name of user to whom the roles are to be assignedroleList - - array of strings containing the name of the roles that are
to be assigned to the user.
ArcGISSecurityException - - if users cannot be assigned to roles
public void addUsersToRole(java.lang.String roleName,
java.lang.String[] userList)
throws ArcGISSecurityException
roleName - - String representing the particular role that is to be assigned.userList - - Array of strings containing the name of the user to whom this
role is to be assigned.
ArcGISSecurityException - - if this role cannot be assigned to the users.
public void deleteRolesFromUser(java.lang.String userName,
java.lang.String[] roleList)
throws ArcGISSecurityException
userName - - name of the user from whom the roles are to be deletedroleList - - Array of strings containing name of the roles that are to be
deleted from this user.
ArcGISSecurityException - - if the roles assigned to the user cannot be deleted
public void deleteUsersFromRole(java.lang.String roleName,
java.lang.String[] userList)
throws ArcGISSecurityException
roleName - - String representing the particular role thats is to be
deleted.userList - - Array of strings containing the name of the users from whom this role
ArcGISSecurityException - - if the role cannot be deleted from the list of users
public java.util.List<ArcGISSecurityRole> getRolesForUser(java.lang.String userName)
throws ArcGISSecurityException
userName - - String representing the user whose roles are to
be returned.
ArcGISSecurityException - - if role list cannot be retrieved
public java.util.List<ArcGISSecurityUser> getUsersForRole(java.lang.String roleName)
throws ArcGISSecurityException
roleName - - String representing the role that is assigned to the
users.
ArcGISSecurityException - - if user list cannot be retrieved.
public boolean validateUser(java.lang.String userName,
java.lang.String password)
throws ArcGISSecurityException
userName - - String representing a particular useruserPassword - - String representing the user's password
ArcGISSecurityException - - if user information cannot be retrieved.public void close()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||