use of com.sun.identity.password.plugins.RandomPasswordGenerator in project OpenAM by OpenRock.
the class UpgradeServices method generateBackupPassword.
private String generateBackupPassword() {
PasswordGenerator passwordGenerator = new RandomPasswordGenerator();
String password = null;
try {
password = passwordGenerator.generatePassword(null);
} catch (PWResetException pre) {
// default implementation will not do this
password = DEFAULT_PASSWORD;
}
return password;
}
Aggregations