Package de.xima.fc.cryptography
Interface PasswordGenerator
-
public interface PasswordGeneratorInterface for generating runtime passwords.- Since:
- 8.5.0
- Author:
- Norman Lorenz
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description char[]generatePassword()Generates a new password.booleanisValidPassword(char[] password)Validates a given password with the password constraints and policy of the underlying implementation.
-
-
-
Method Detail
-
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.
-
-