public interface PasswordRestriction
Modifier and Type | Method and Description |
---|---|
char[] |
generatePassword(int passwordLength,
String regexPattern,
String charPattern)
Generates a new random password, if the password is reset.
|
int |
validatePasswordRestriction(char[] password,
int passwordMinLength,
String regexPattern,
char[] oldPassword)
Validates whether the password matches the restrictions specified by the parameters.
|
int validatePasswordRestriction(char[] password, int passwordMinLength, String regexPattern, char[] oldPassword)
password
- The password to be verified.passwordMinLength
- The minimum length the password must have.regexPattern
- A 'Regular Expression' pattern.oldPassword
- The user's previous password - if it is available.0
the check was
successful.char[] generatePassword(int passwordLength, String regexPattern, String charPattern)
passwordLength
- The length of the new password.regexPattern
- A 'Regular Expression' pattern.charPattern
- A character pattern for password generation defining the complete character set which therefore has to be used.
This set of characters must be written as a list of all characters to be used, not as regular expression.null
if the password could be be generated.Copyright © 2022 KOBIL Systems GmbH. All rights reserved.