GigaSpaces XAP 9.7.2 API

com.gigaspaces.security.directory
Interface DirectoryManager


public interface DirectoryManager

An interface for user and role management. The directory manager is created by the call to SecurityManager.createDirectoryManager(UserDetails).

The directory manager is a standalone component that is used to manage users and roles, outside of the service (server) life-cycle. Management capability is optional if management is done using an external tool. If this is the case, a DirectoryAccessDeniedException should be thrown in response to the SecurityManager.createDirectoryManager(UserDetails) call.

Since:
7.0.1
Author:
Moran Avigdor
See Also:
DirectoryAccessDeniedException

Method Summary
 void close()
          Close the resource used to store the user and role details.
 RoleManager getRoleManager()
          A role manager for role-management based on the privileges granted to the directory manager.
 UserManager getUserManager()
          A user manager for user-management based on the privileges granted to the directory manager.
 

Method Detail

getUserManager

UserManager getUserManager()
A user manager for user-management based on the privileges granted to the directory manager.

Returns:
a user manager for managing users

getRoleManager

RoleManager getRoleManager()
A role manager for role-management based on the privileges granted to the directory manager.

Returns:
a role manager for managing roles

close

void close()
Close the resource used to store the user and role details.

Implementors may choose to flush all gathered details, or remove any excess resources (database connections) that may have been opened upon construction.


GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.