|
Sonic Management API | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IManagement
The Management SPI is used to retrieve the user and group from any third party security store. Implementing this SPI results in viewing the read-only users and groups present on the external security store.
The management SPI can be categorized into two:
Core Interfaces
com.sonicsw.security.pass.mf.IManagement
com.sonicsw.security.pass.client.IPasswordUser
com.sonicsw.security.pass.mf.IGroup
Additional Interfaces
com.sonicsw.security.pass.mf.IEvent
com.sonicsw.security.pass.mf.IEventDisconnected
com.sonicsw.security.pass.mf.IEventGroupsAdded
com.sonicsw.security.pass.mf.IEventGroupsDeleted
com.sonicsw.security.pass.mf.IEventGroupsModified
com.sonicsw.security.pass.mf.IEventUsersAdded
com.sonicsw.security.pass.mf.IEventUsersDeleted
com.sonicsw.security.pass.mf.IEventUsersModified
com.sonicsw.security.pass.mf.INotificationListener
The basic functionality is achieved by implementing the core interfaces.
Configuring Management SPI & using it in external Authentication Domain
To use this functionality, users have to create a Management SPI configuration, which contains the Management SPI name, its classname and its classpath using Sonic Management Console (SMC).
While configuring an external Authentication Domain, users have to select a preconfigured Management SPI name and provide attributes which are to be added as name-value pairs using the Attribute Setting group box. These attributes are passed to the SPI implementation as a HashMap.
Method Summary | |
---|---|
void |
connect(java.util.HashMap configuration)
This method is used to connect to an external store. |
void |
deleteNotificationListener()
This method removes/unregisters the event notifications listeners. |
void |
disconnect()
This is used to disconnect the connection to the external data store |
IGroup |
getGroup(java.lang.String id)
This method is used to retrieve a group that matches the id. |
IGroup[] |
getGroups()
This method is used to retrieve a list of groups that exist in the external security store. |
IPasswordUser |
getUser(java.lang.String id)
This method is returns a user that matches the id |
IPasswordUser[] |
getUsers()
This method returns the list of uses existing in the external domain. |
boolean |
setNotificationListener(INotificationListener listener)
This method is used to register event notifications listeners. |
Method Detail |
---|
void connect(java.util.HashMap configuration) throws InvalidConfigurationException, ConnectionException
connecting after the disconnect() method was called
or
the IManagement object was disconnected because the connection to external source failed
or IManagement received an IEvenetDisconnected event
configuration
- This is a name and value pair of configuration
attributes that is required by the implementation and configured via SMC.
InvalidConfigurationException
- thrown if the connection failed because of bad connection
ConnectionException
- thrown if connect() fails.void deleteNotificationListener()
void disconnect()
IGroup getGroup(java.lang.String id) throws ConnectionException
id
- id of a group
ConnectionException
IGroup[] getGroups() throws ConnectionException
ConnectionException
IPasswordUser getUser(java.lang.String id) throws ConnectionException
id
- id of a user
ConnectionException
IPasswordUser[] getUsers() throws ConnectionException
ConnectionException
boolean setNotificationListener(INotificationListener listener)
connect(HashMap)
method is called.
If disconnect()
is called for any reason, then the next
connect(HashMap)
call must restore listener - no additional
setNotificationListener
call is needed. Setting of a single
listener must be implemented - a second attempt to call
setNotificationListener
may fail.
If this method is not be implemented, users should return
false
. Corollary, true
is to be returned if
setNotificationListener
is implemented.
listener
- the listener
connect(HashMap)
,
disconnect()
|
Sonic Management API | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |