public class PamPasswordRestrictionImpl extends Object implements PasswordRestriction
Constructor and Description |
---|
PamPasswordRestrictionImpl() |
Modifier and Type | Method and Description |
---|---|
char[] |
generatePassword(int passwordLength,
String regexPattern,
String passwordGenerationPattern)
KOBIL implementation does not use regexp pattern
If parameter passwordGenerationPattern is defined by PamSetting and handled over here it uses a different generation method. |
static PasswordRestriction |
loadCustomRestrictionClass()
load the custom restriction class from $ssms_home$/password_restriction
|
int |
validatePasswordRestriction(char[] password,
int passwordMinLength,
String regexPattern,
char[] oldPassword)
Validates whether the password matches the restrictions specified by the parameters.
|
public int validatePasswordRestriction(char[] password, int passwordMinLength, String regexPattern, char[] oldPassword)
PasswordRestriction
validatePasswordRestriction
in interface PasswordRestriction
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.public char[] generatePassword(int passwordLength, String regexPattern, String passwordGenerationPattern)
generatePassword
in interface PasswordRestriction
passwordGenerationPattern
- -
when null or empty it generates alphanumericchar password, otherwise it uses the chars contained in it.passwordLength
- The length of the new password.regexPattern
- A 'Regular Expression' pattern.null
if the password could be be generated.public static PasswordRestriction loadCustomRestrictionClass()
Copyright © 2022 KOBIL Systems GmbH. All rights reserved.