Extending Principal Store API (Custom Store Access) |
|
Release 9.3 |
![]() ![]() ![]() |
Various components of the Security Model communicate with the Principal Store (user and role store) using the Principal Store API. This API has been written in Java and you can extend this API to communicate with any specific data store of your choice.
Please refer the diagram to understand the API architecture. Also refer to the JavaDoc for the Principal Store API.
The Security.XML file contains configuration parameters (as key value pairs) for the various stores. The SecurityFactory class used within the manager creates objects of type ArcGISSecurityStore with a particular implementation. The SecurityFactory class calls the init method on the implementation of ArcGISSecurityStore and passes a hash map of all the configuration parameters from the Security.XML. You can implement the 'init' method to read the configuration parameters that your class needs to initialize itself.