org.exist.security
Interface SecurityManager
- All Known Implementing Classes:
- LDAPbindSecurityManager, LDAPSecurityManager, XMLSecurityManager
public interface SecurityManager
SecurityManager is responsible for managing users and groups.
There's only one SecurityManager for each database instance, which
may be obtained by BrokerPool.getSecurityManager()
.
Users and groups are stored in the system collection, in document
users.xml. While it is possible to edit this file by hand, it
may lead to unexpected results, since SecurityManager reads
users.xml only during database startup and shutdown.
ACL_FILE
static final String ACL_FILE
- See Also:
- Constant Field Values
ACL_FILE_URI
static final XmldbURI ACL_FILE_URI
DBA_GROUP
static final String DBA_GROUP
- See Also:
- Constant Field Values
DBA_USER
static final String DBA_USER
- See Also:
- Constant Field Values
GUEST_GROUP
static final String GUEST_GROUP
- See Also:
- Constant Field Values
GUEST_USER
static final String GUEST_USER
- See Also:
- Constant Field Values
SYSTEM_USER
static final User SYSTEM_USER
attach
void attach(BrokerPool pool,
DBBroker sysBroker)
isXACMLEnabled
boolean isXACMLEnabled()
getPDP
ExistPDP getPDP()
deleteUser
void deleteUser(String name)
throws PermissionDeniedException
- Throws:
PermissionDeniedException
deleteUser
void deleteUser(User user)
throws PermissionDeniedException
- Throws:
PermissionDeniedException
getUser
User getUser(String name)
getUser
User getUser(int uid)
getUsers
User[] getUsers()
addGroup
void addGroup(String name)
hasGroup
boolean hasGroup(String name)
getGroup
Group getGroup(String name)
getGroup
Group getGroup(int gid)
getGroups
String[] getGroups()
hasAdminPrivileges
boolean hasAdminPrivileges(User user)
hasUser
boolean hasUser(String name)
setUser
void setUser(User user)
getResourceDefaultPerms
int getResourceDefaultPerms()
getCollectionDefaultPerms
int getCollectionDefaultPerms()
Copyright (C) Wolfgang Meier. All rights reserved.