Interface DirectoryManager
- All Known Implementing Classes:
FileDirectoryManager
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:
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close the resource used to store the user and role details.A role manager for role-management based on the privileges granted to the directory manager.A user manager for user-management based on the privileges granted to the directory manager.
-
Method Details
-
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.
-