|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--org.jwarp.service.security.ASecurity
|
+--org.jwarp.service.security.FileSecurity
| Field Summary | |
(package private) FileGroupManager |
groupManager
|
| Fields inherited from class org.jwarp.service.security.ASecurity |
defaultExpireSeconds, listeners, system, systemContext, systemSec, systemTicket, tickets |
| Fields inherited from interface org.jwarp.service.security.ISecurity |
ALL_USERS, LEVEL_CREATE, LEVEL_DELETE, LEVEL_FULLACCESS, LEVEL_GRANT, LEVEL_READ, LEVEL_UPDATE |
| Constructor Summary | |
FileSecurity(java.io.File storeFile,
ITicket systemTicket)
|
|
FileSecurity(java.io.File storeFile,
java.lang.String name,
ITicket systemTicket)
|
|
FileSecurity(java.lang.String storeFile,
ITicket systemTicket)
|
|
FileSecurity(java.lang.String storeFile,
java.lang.String name,
ITicket systemTicket)
|
|
| Method Summary | |
protected boolean |
accessGranted(int objectID,
int level,
int user)
Returns true if the user is granted access of the given level to the object with the given ID. |
boolean |
accessGranted(ISecurityObject object,
int level,
ITicket userTicket)
Returns true if the user is granted access of the given level to the object with the given ID. |
boolean |
accessGranted(java.lang.String objectID,
int level,
ITicket userTicket)
Returns true if the user is granted access of the given level to the object with the given ID. |
protected void |
addMember(int group,
int user,
ITicket admin)
Add a user to a group |
void |
addMember(ISecurityGroup group,
ISecurityGroup member,
ITicket admin)
Add a user to a group |
void |
addMember(ISecurityGroup group,
ISecurityUser member,
ITicket admin)
Add a user to a group |
ISecurityGroup |
createGroup(java.lang.String name,
java.lang.String description,
java.lang.Object additional,
ITicket admin)
Create a new group with the setings given. |
ISecurityObject |
createObject(java.lang.String name,
java.lang.String description,
java.lang.Object additional,
ITicket admin)
Create a new group with the setings given. |
ISecurityUser |
createUser(java.lang.String uid,
java.lang.String pwd,
java.lang.String name,
java.lang.String description,
java.lang.Object additonal,
ITicket admin)
Define a new user |
void |
delete(ISecurityGroup group,
ITicket admin)
|
void |
delete(ISecurityObject object,
ITicket admin)
|
void |
delete(ISecurityUser user,
ITicket admin)
|
ISecurityGroup |
getGroup(int id,
ITicket admin)
Returns the group with the given id. |
ISecurityGroup |
getGroup(java.lang.String name,
ITicket admin)
Returns the group with the given name. |
java.util.Iterator |
getGroups(ITicket admin)
Returns all defined users. |
java.util.Iterator |
getMembers(ISecurityGroup group,
ITicket admin)
Returns all defined users. |
ISecurityObject |
getObject(int id,
ITicket admin)
Returns the object with the given id. |
ISecurityObject |
getObject(java.lang.String name,
ITicket admin)
Returns the object with the given name. |
java.util.Iterator |
getObjects(ITicket admin)
Returns all defined users. |
ISecurityUser |
getUser(int id,
ITicket admin)
Returns the user with the given id. |
ISecurityUser |
getUser(java.lang.String uid,
ITicket admin)
Returns the user with the given uid. |
java.util.Iterator |
getUsers(ITicket admin)
Returns all defined users. |
protected void |
grant(int objectID,
int level,
int grantedTo,
ITicket admin)
Tries to grant rights to access the object given the ID with the level passed. |
void |
grant(ISecurityObject object,
int level,
ISecurityGroup group,
ITicket admin)
Tries to grant rights to access the object given the ID with the level passed. |
void |
grant(ISecurityObject object,
int level,
ISecurityUser user,
ITicket admin)
Tries to grant rights to access the object given the ID with the level passed. |
void |
grant(java.lang.String objectID,
int level,
int grantedTo,
ITicket admin)
Tries to grant rights to access the object given the ID with the level passed. |
void |
grant(java.lang.String name,
int level,
ISecurityGroup group,
ITicket admin)
Tries to grant rights to access the object given the ID with the level passed. |
void |
grant(java.lang.String name,
int level,
ISecurityUser user,
ITicket admin)
Tries to grant rights to access the object given the ID with the level passed. |
void |
load()
|
ITicket |
login(java.lang.String uid,
java.lang.String pwd)
Try to login a user |
protected void |
removeMember(int group,
int member,
ITicket admin)
Remove a user from a group |
void |
removeMember(ISecurityGroup group,
ISecurityGroup member,
ITicket admin)
Remove a user from a group |
void |
removeMember(ISecurityGroup group,
ISecurityUser member,
ITicket admin)
Remove a user from a group |
protected void |
revoke(int objectID,
int level,
int revokeFrom,
boolean force,
ITicket admin)
Tries to revoke rights to access the object given the ID with the level passed. |
void |
revoke(ISecurityObject object,
int level,
ISecurityGroup group,
boolean force,
ITicket admin)
Tries to revoke rights to access the object given the ID with the level passed. |
void |
revoke(ISecurityObject object,
int level,
ISecurityUser user,
boolean force,
ITicket admin)
Tries to revoke rights to access the object given the ID with the level passed. |
void |
revoke(java.lang.String objectID,
int level,
ISecurityGroup group,
boolean force,
ITicket admin)
Tries to revoke rights to access the object given the ID with the level passed. |
void |
revoke(java.lang.String objectID,
int level,
ISecurityUser user,
boolean force,
ITicket admin)
Tries to revoke rights to access the object given the ID with the level passed. |
void |
store()
|
| Methods inherited from class org.jwarp.service.security.ASecurity |
addSecurityListener, checkAdmin, checkTicket, fireSecurityEvent, getContext, getExpireExtendSeconds, getExpireSeconds, getSecurityObjects, initSecurity, isLoggedIn, removeSecurityListener, setContext |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
FileGroupManager groupManager
| Constructor Detail |
public FileSecurity(java.lang.String storeFile,
ITicket systemTicket)
throws java.io.IOException,
java.lang.ClassNotFoundException
public FileSecurity(java.io.File storeFile,
ITicket systemTicket)
throws java.io.IOException,
java.lang.ClassNotFoundException
public FileSecurity(java.lang.String storeFile,
java.lang.String name,
ITicket systemTicket)
throws java.io.IOException,
java.lang.ClassNotFoundException
public FileSecurity(java.io.File storeFile,
java.lang.String name,
ITicket systemTicket)
throws java.io.IOException,
java.lang.ClassNotFoundException
| Method Detail |
public void store()
public void load()
throws java.io.IOException,
java.lang.ClassNotFoundException
public ISecurityUser createUser(java.lang.String uid,
java.lang.String pwd,
java.lang.String name,
java.lang.String description,
java.lang.Object additonal,
ITicket admin)
throws java.lang.SecurityException,
java.lang.RuntimeException
org.jwarp.service.security.ISecurityuid - The user's identificationpwd - The user's passwordname - The user's namedescription - An optional descriptionrelationID - An optional relation IDadmin - The user who tries to create the new userjava.lang.SecurityException - If the creation failed.
public ISecurityObject createObject(java.lang.String name,
java.lang.String description,
java.lang.Object additional,
ITicket admin)
throws java.lang.SecurityException,
java.lang.RuntimeException
name - The user's namedescription - An optional descriptionrelationID - An optional relation IDadmin - The user who tries to create the new userjava.lang.SecurityException - If the creation failed.
public ISecurityGroup createGroup(java.lang.String name,
java.lang.String description,
java.lang.Object additional,
ITicket admin)
throws java.lang.SecurityException,
java.lang.RuntimeException
name - The user's namedescription - An optional descriptionrelationID - An optional relation IDadmin - The user who tries to create the new userjava.lang.SecurityException - If the creation failed.
public void delete(ISecurityGroup group,
ITicket admin)
throws java.lang.SecurityException,
java.lang.RuntimeException
public void delete(ISecurityUser user,
ITicket admin)
throws java.lang.SecurityException,
java.lang.RuntimeException
public void delete(ISecurityObject object,
ITicket admin)
throws java.lang.SecurityException,
java.lang.RuntimeException
public ISecurityUser getUser(int id,
ITicket admin)
throws java.lang.SecurityException
public ISecurityUser getUser(java.lang.String uid,
ITicket admin)
throws java.lang.SecurityException
public ISecurityGroup getGroup(int id,
ITicket admin)
throws java.lang.SecurityException
public ISecurityGroup getGroup(java.lang.String name,
ITicket admin)
throws java.lang.SecurityException
public ISecurityObject getObject(int id,
ITicket admin)
throws java.lang.SecurityException
public ISecurityObject getObject(java.lang.String name,
ITicket admin)
throws java.lang.SecurityException
public java.util.Iterator getUsers(ITicket admin)
throws java.lang.SecurityException
admin - The administrator who triggers the calljava.lang.SecurityException - If the Administrator was denied access.
public java.util.Iterator getGroups(ITicket admin)
throws java.lang.SecurityException
admin - The administrator who triggers the calljava.lang.SecurityException - If the Administrator was denied access.
public java.util.Iterator getObjects(ITicket admin)
throws java.lang.SecurityException
admin - The administrator who triggers the calljava.lang.SecurityException - If the Administrator was denied access.
public void addMember(ISecurityGroup group,
ISecurityUser member,
ITicket admin)
throws java.lang.SecurityException,
java.lang.RuntimeException
user - The usergroup - The groupadmin - The admin userjava.lang.SecurityException - If the setting failed.
public void addMember(ISecurityGroup group,
ISecurityGroup member,
ITicket admin)
throws java.lang.SecurityException,
java.lang.RuntimeException
user - The usergroup - The groupadmin - The admin userjava.lang.SecurityException - If the setting failed.
protected void addMember(int group,
int user,
ITicket admin)
throws java.lang.SecurityException,
java.lang.RuntimeException
user - The usergroup - The groupadmin - The admin userjava.lang.SecurityException - If the setting failed.
public void removeMember(ISecurityGroup group,
ISecurityGroup member,
ITicket admin)
throws java.lang.SecurityException,
java.lang.RuntimeException
user - The usergroup - The groupadmin - The admin userjava.lang.SecurityException - If the setting failed.
public void removeMember(ISecurityGroup group,
ISecurityUser member,
ITicket admin)
throws java.lang.SecurityException,
java.lang.RuntimeException
user - The usergroup - The groupadmin - The admin userjava.lang.SecurityException - If the setting failed.
protected void removeMember(int group,
int member,
ITicket admin)
throws java.lang.SecurityException,
java.lang.RuntimeException
user - The usergroup - The groupadmin - The admin userjava.lang.SecurityException - If the setting failed.
public void grant(java.lang.String name,
int level,
ISecurityUser user,
ITicket admin)
throws java.lang.SecurityException,
java.lang.RuntimeException
objectID - The object's idlevel - The access leveluser - The user the access is granted.admin - The admin who triggers the request.java.lang.SecurityException -
public void grant(java.lang.String name,
int level,
ISecurityGroup group,
ITicket admin)
throws java.lang.SecurityException,
java.lang.RuntimeException
objectID - The object's idlevel - The access leveluser - The user the access is granted.admin - The admin who triggers the request.java.lang.SecurityException -
public void grant(ISecurityObject object,
int level,
ISecurityUser user,
ITicket admin)
throws java.lang.SecurityException,
java.lang.RuntimeException
objectID - The object's idlevel - The access leveluser - The user the access is granted.admin - The admin who triggers the request.java.lang.SecurityException -
public void grant(ISecurityObject object,
int level,
ISecurityGroup group,
ITicket admin)
throws java.lang.SecurityException,
java.lang.RuntimeException
objectID - The object's idlevel - The access leveluser - The user the access is granted.admin - The admin who triggers the request.java.lang.SecurityException -
protected void grant(int objectID,
int level,
int grantedTo,
ITicket admin)
throws java.lang.SecurityException,
java.lang.RuntimeException
objectID - The object's idlevel - The access leveluser - The user the access is granted.admin - The admin who triggers the request.java.lang.SecurityException -
public void grant(java.lang.String objectID,
int level,
int grantedTo,
ITicket admin)
throws java.lang.SecurityException,
java.lang.RuntimeException
objectID - The object's idlevel - The access leveluser - The user the access is granted.admin - The admin who triggers the request.java.lang.SecurityException -
public void revoke(ISecurityObject object,
int level,
ISecurityUser user,
boolean force,
ITicket admin)
objectID - The object's idlevel - The access levelgroup - The grouper the access is revoked.force - Try to revoke emmedeately or after next loginadmin - The admin who triggers the request.java.lang.SecurityException -
public void revoke(ISecurityObject object,
int level,
ISecurityGroup group,
boolean force,
ITicket admin)
objectID - The object's idlevel - The access levelgroup - The grouper the access is revoked.force - Try to revoke emmedeately or after next loginadmin - The admin who triggers the request.java.lang.SecurityException -
protected void revoke(int objectID,
int level,
int revokeFrom,
boolean force,
ITicket admin)
throws java.lang.SecurityException,
java.lang.RuntimeException
objectID - The object's idlevel - The access levelgroup - The grouper the access is revoked.force - Try to revoke emmedeately or after next loginadmin - The admin who triggers the request.java.lang.SecurityException -
public void revoke(java.lang.String objectID,
int level,
ISecurityUser user,
boolean force,
ITicket admin)
throws java.lang.SecurityException,
java.lang.RuntimeException
objectID - The object's idlevel - The access levelgroup - The grouper the access is revoked.force - Try to revoke emmedeately or after next loginadmin - The admin who triggers the request.java.lang.SecurityException -
public void revoke(java.lang.String objectID,
int level,
ISecurityGroup group,
boolean force,
ITicket admin)
throws java.lang.SecurityException,
java.lang.RuntimeException
objectID - The object's idlevel - The access levelgroup - The grouper the access is revoked.force - Try to revoke emmedeately or after next loginadmin - The admin who triggers the request.java.lang.SecurityException -
public java.util.Iterator getMembers(ISecurityGroup group,
ITicket admin)
throws java.lang.SecurityException
admin - The administrator who triggers the calljava.lang.SecurityException - If the Administrator was denied access.
protected boolean accessGranted(int objectID,
int level,
int user)
public boolean accessGranted(java.lang.String objectID,
int level,
ITicket userTicket)
public boolean accessGranted(ISecurityObject object,
int level,
ITicket userTicket)
public ITicket login(java.lang.String uid,
java.lang.String pwd)
throws LoginException
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||