org.mozilla.jss.util
Class ConsolePasswordCallback
java.lang.Object
org.mozilla.jss.util.ConsolePasswordCallback
- PasswordCallback
public class ConsolePasswordCallback
extends java.lang.Object
A password callback that obtains its password from the console.
Asterisks are echoed at the prompt.
ConsolePasswordCallback
public ConsolePasswordCallback()
getPasswordAgain
public Password getPasswordAgain(PasswordCallbackInfo token)
throws PasswordCallback.GiveUpException
Tries supplying a password again. This callback will be called if
the first callback returned an invalid password. It will be called
repeatedly until it returns a correct password, or it gives up by
throwing a GiveUpException
.
- getPasswordAgain in interface PasswordCallback
- The password. This password object is owned by and will
be cleared by the caller.