public interface PasswordManager
PasswordManager impl = DiscoveryService.lookupSingleton(PasswordManager.class);or
PasswordManager impl = PasswordManagerFactory.getDefaultPasswordManager()which lead to the same default implementation. Several flavors of PasswordManager are already available in the factory.
PasswordManagerFactory| Modifier and Type | Method and Description |
|---|---|
Password |
newPassword(char[] password)
Obfuscate the given password in a new Password instance.
|
Password newPassword(char[] password)
password - The password to obfuscate ; may be null or empty ; that char
array is cleared when returningEmptyPassword.SINGLETONCopyright © 2018 Alternet. All rights reserved.