public abstract class AbstractPasswordManager extends Object implements PasswordManager
| Constructor and Description |
|---|
AbstractPasswordManager() |
| Modifier and Type | Method and Description |
|---|---|
Password |
newPassword(char[] password)
Obfuscate the given password in a new Password instance.
|
protected abstract Password |
newValidPassword(char[] password)
Obfuscate the given password in a new Password instance.
|
public final Password newPassword(char[] password)
PasswordManagernewPassword in interface PasswordManagerpassword - The password to obfuscate ; may be null or empty ; that char
array is cleared when returningEmptyPassword.SINGLETONprotected abstract Password newValidPassword(char[] password)
password - A non-empty password.
It is useless to unset the chars, because this
method is called from newPassword(char[])
that do it.Copyright © 2018 Alternet. All rights reserved.