public class PasswordResolverImpl extends Object implements PasswordResolver
PasswordResolver.| Constructor and Description |
|---|
PasswordResolverImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
init() |
String |
protectPassword(String protocol,
char[] password) |
void |
registResolver(SinglePasswordResolver resolver) |
char[] |
resolvePassword(String passwordHint)
Resolve the password.
|
void |
setMasterPasswordCallback(String masterPasswordCallback) |
void |
unregistResolver(SinglePasswordResolver resolver) |
public void init()
public void registResolver(SinglePasswordResolver resolver)
public void unregistResolver(SinglePasswordResolver resolver)
public char[] resolvePassword(String passwordHint) throws PasswordResolverException
PasswordResolverresolvePassword in interface PasswordResolverpasswordHint - Hint of the password. Must not be null.PasswordResolverException - if cannot resolve the passwordpublic String protectPassword(String protocol, char[] password) throws PasswordResolverException
protectPassword in interface PasswordResolverPasswordResolverExceptionpublic void setMasterPasswordCallback(String masterPasswordCallback)
Copyright © 2020. All rights reserved.