|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--au.edu.swin.synergy.plugin.userdb.BSecurityManager
This handles all security relating to passwords, privileges and owners. It also does the changing of passwords as this is a particular specialised functionality.
Constructor Summary | |
BSecurityManager(BPlugin dispatcher,
Hashtable userDatabase,
Hashtable groupDatabase)
Creates a new security manager with the given users and groups to manage. |
Method Summary | |
void |
doAuthentication(BAuthUserCE e)
This will determine whether the given credentials are valid by comparing them with the credentials in the user database. |
protected void |
doPasswordChange(BChangePasswordCE passwordEvent)
This will take the change password event, find the user that is intended to be updated, compare the original password with the existing one and update the password if all is well. |
protected String |
doPasswordEncrypt(String plainPassword)
This will take the given plain password and return the encrypted version of it |
protected boolean |
isAdministrator(BCommandEvent event)
This will determine whether the user currently authenticated against this server has administrative privileges or not. |
boolean |
isLocal(BCommandEvent event)
This will determine whether the given event originated locally or originated from a source other than the local machine. |
boolean |
isLoggedIn(BUser user)
Indicates whether the given user is currently logged in |
protected boolean |
isOwner(BUser targetUser,
int connectionID)
This will determine whether the user currently authenticated against this server attempting to update the provided user object is infact the owner of the object. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public BSecurityManager(BPlugin dispatcher, Hashtable userDatabase, Hashtable groupDatabase)
userDatabase
- The users of the systemgroupDatabase
- The groups in the systemMethod Detail |
protected void doPasswordChange(BChangePasswordCE passwordEvent)
passwordEvent
- The event requesting the change
Please complete the missing tags for doPasswordChangeprotected String doPasswordEncrypt(String plainPassword)
plainPassword
- The password to encryptpublic void doAuthentication(BAuthUserCE e)
e
- The authenticate user eventprotected boolean isAdministrator(BCommandEvent event)
targetUser
- The user object being updatedpublic boolean isLocal(BCommandEvent event)
event
- The event to checkprotected boolean isOwner(BUser targetUser, int connectionID)
targetUser
- The user object being updatedpublic boolean isLoggedIn(BUser user)
user
- The user to check
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |