com.sibvisions.rad.server.security.validation
Class DefaultPasswordValidator
java.lang.Object
com.sibvisions.rad.server.security.validation.DefaultPasswordValidator
- All Implemented Interfaces:
- IPasswordValidator
public class DefaultPasswordValidator
- extends Object
- implements IPasswordValidator
The DefaultPasswordValidator
validates a password and uses following options:
- Minimum length (default: 5)
- Must contain at least one number (default: false)
- Must contain at least one letter (default: false)
- Must contain at least one special character (space, dot, ...) (default: false)
- Must contain upper and lower case letters (default: false)
- Password not equal to the username (defult: false)
to check the strength of a password.
If you want to use the DefaultPasswordValidator
then you should specify it in
your configuration as follows:
<securitymanager>
<class>...</class>
<passwordvalidator>
<class>com.sibvisions.rad.server.security.validation.DefaultPasswordValidator</class>
<minlength>n</minlength>
<digit>true | false</digit>
<letter>true | false</letter>
<specialchar>true | false</specialchar>
<mixedcase>true | false</mixedcase>
<notequaluser>true | false</notequaluser>
</passwordvalidator>
</securitymanager>
- See Also:
IPasswordValidator
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultPasswordValidator
public DefaultPasswordValidator()
checkPassword
public void checkPassword(ISession pSession,
String pPassword)
- Checks if a password is strength enough to be used.
- Specified by:
checkPassword
in interface IPasswordValidator
- Parameters:
pSession
- the session which wants to change the passwordpPassword
- the new password
Copyright © 2009 SIB Visions GmbH. All Rights Reserved.