Interface PasswordGenerator
public interface PasswordGenerator
Interface for generating runtime passwords.
- Since:
- 8.5.0
- Author:
- Norman Lorenz
-
Method Summary
Modifier and TypeMethodDescriptionchar[]Generates a new password.booleanisValidPassword(char[] password) Validates a given password with the password constraints and policy of the underlying implementation.
-
Method Details
-
generatePassword
char[] generatePassword()Generates a new password.- Returns:
- A newly generated password.
-
isValidPassword
boolean isValidPassword(char[] password) Validates a given password with the password constraints and policy of the underlying implementation.- Parameters:
password- the password to check- Returns:
- true if valid otherwise false.
-