Package tv.hd3g.authkit.mod.service
Class ValidPasswordPolicyServiceImpl
java.lang.Object
tv.hd3g.authkit.mod.service.ValidPasswordPolicyServiceImpl
- All Implemented Interfaces:
ValidPasswordPolicyService
@Service
public class ValidPasswordPolicyServiceImpl
extends Object
implements ValidPasswordPolicyService
https://en.wikipedia.org/wiki/Password_policy#cite_ref-sp800-63B_13-0
Password base: https://wiki.skullsecurity.org/index.php?title=Passwords
-
Nested Class Summary
Nested classes/interfaces inherited from interface tv.hd3g.authkit.mod.service.ValidPasswordPolicyService
ValidPasswordPolicyService.PasswordValidationLevel -
Field Summary
FieldsModifier and TypeFieldDescription0000 1111 2222 ... dddd eeee ffff ... -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckPasswordValidation(String username, Password password, ValidPasswordPolicyService.PasswordValidationLevel level) - Will check 8 characters in (minSize/strongMinSize) - Ignore spaces in count - avoid passwords consisting of repetitive or sequential characters (e.g.Special split: if text="aaa@bbb" and what="@" to return "aaa@bbb", "aaa", "bbb"Call split() for each what, and accumulate all.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface tv.hd3g.authkit.mod.service.ValidPasswordPolicyService
checkPasswordValidation
-
Field Details
-
stupidPasswordWords
-
stupidLettersNumbers
0000 1111 2222 ... dddd eeee ffff ...
-
-
Constructor Details
-
ValidPasswordPolicyServiceImpl
public ValidPasswordPolicyServiceImpl()
-
-
Method Details
-
checkPasswordValidation
public void checkPasswordValidation(String username, Password password, ValidPasswordPolicyService.PasswordValidationLevel level) throws PasswordComplexityException - Will check 8 characters in (minSize/strongMinSize) - Ignore spaces in count - avoid passwords consisting of repetitive or sequential characters (e.g. ‘aaaaaa’, ‘1234abcd’) - avoid context-specific words, such as the name of the service, the username, and derivatives thereof- Specified by:
checkPasswordValidationin interfaceValidPasswordPolicyService- Throws:
PasswordComplexityException
-
split
Special split: if text="aaa@bbb" and what="@" to return "aaa@bbb", "aaa", "bbb"- Parameters:
text- source textwhat- the chain/char to search- Returns:
- list of splited text
-
splitAll
Call split() for each what, and accumulate all.
-