Search in sources :

Example 1 with RandomPasswordGenerator

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;
}
Also used : PWResetException(com.sun.identity.password.ui.model.PWResetException) PasswordGenerator(com.sun.identity.password.plugins.PasswordGenerator) RandomPasswordGenerator(com.sun.identity.password.plugins.RandomPasswordGenerator) RandomPasswordGenerator(com.sun.identity.password.plugins.RandomPasswordGenerator)

Aggregations

PasswordGenerator (com.sun.identity.password.plugins.PasswordGenerator)1 RandomPasswordGenerator (com.sun.identity.password.plugins.RandomPasswordGenerator)1 PWResetException (com.sun.identity.password.ui.model.PWResetException)1