|
dbXML API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
SecurityManager manages Users, Roles, and Access Control Lists for dbXML.
Method Summary | |
void |
access(java.lang.String path,
int mask)
access performs an access control check against the SecurityManager's access control lists. |
void |
authenticate(java.lang.String userID,
java.lang.String password)
authenticate checks a User against the SecurityManager's access control lists. |
java.lang.String |
getCurrentUserID()
getCurrentUserID returns the currently authenticated User ID. |
void |
setDatabase(Database database)
setDatabase sets the Database instance for this SecurityManager. |
void |
setMagicUser(User magicUser)
setMagicUser sets the User instance that the SecurityManager can use to represent system-level credentials for low level resource access. |
void |
setUserStack(UserStack userStack)
setUserStack sets the User stack for the SecurityManager. |
Methods inherited from interface com.dbxml.util.Configurable |
getConfig, setConfig |
Method Detail |
public void setDatabase(Database database)
public void setUserStack(UserStack userStack) throws SecurityException
userStack
- The UserStack
SecurityException
public void setMagicUser(User magicUser) throws SecurityException
magicUser
- The magic User
SecurityException
public void authenticate(java.lang.String userID, java.lang.String password) throws SecurityException
userID
- the User ID to checkpassword
- the Password to check
SecurityException
public void access(java.lang.String path, int mask) throws SecurityException
path
- the resource path being accessedmask
- The access mask to check against
SecurityException
public java.lang.String getCurrentUserID()
|
dbXML API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |