|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sibvisions.rad.server.security.AbstractSecurityManager
public abstract class AbstractSecurityManager
The AbstractSecurityManager is the base class for ISecurityManager implementations
but it does not implement the security methods.
It supports security managers with important and usable methods.
| Constructor Summary | |
|---|---|
AbstractSecurityManager()
|
|
| Method Summary | |
|---|---|
void |
checkPassword(ISession pSession,
String pPassword)
Checks if a password is strength enough to be used. |
protected boolean |
comparePassword(String pPassword,
String pConfirmPassword)
Compares two passwords to be identical. |
protected IPasswordValidator |
getPasswordValidator(IConfiguration pConfig)
Gets the password validator from an application configuration. |
protected void |
validatePassword(ISession pSession,
String pOldPassword,
String pNewPassword)
Validates a new password against an old password an uses a preconfigured password validator for checking the strength of the new password. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.sibvisions.rad.server.security.ISecurityManager |
|---|
changePassword, logout, validateAuthentication |
| Constructor Detail |
|---|
public AbstractSecurityManager()
| Method Detail |
|---|
public void checkPassword(ISession pSession,
String pPassword)
checkPassword in interface IPasswordValidatorpSession - the session which wants to change the passwordpPassword - the new password
protected boolean comparePassword(String pPassword,
String pConfirmPassword)
pPassword - base passwordpConfirmPassword - confiration password
true if the passwords are identical, otherwise falseprotected IPasswordValidator getPasswordValidator(IConfiguration pConfig)
pConfig - the application configuration
IPasswordValidator or null if no validator is specified
protected void validatePassword(ISession pSession,
String pOldPassword,
String pNewPassword)
throws Exception
pSession - the session which changes the passwordpOldPassword - the old/current passwordpNewPassword - the new password
Exception - if the password validation failed, e.g. old = new, new is not strength enough, ...
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||