org.mozilla.jss.util
public interface PasswordCallback
The simplest implementation of a PasswordCallback is a Password object.
See Also: Password NullPasswordCallback ConsolePasswordCallback CryptoManager
Nested Class Summary | |
---|---|
static class | PasswordCallback.GiveUpException
This exception is thrown if the PasswordCallback
wants to stop guessing passwords. |
Method Summary | |
---|---|
Password | getPasswordAgain(PasswordCallbackInfo info)
Tries supplying a password again. |
Password | getPasswordFirstAttempt(PasswordCallbackInfo info)
Supplies a password. |
GiveUpException
.
Parameters: info Information about the token that is being logged into.
Returns: The password. This password object is owned by and will be cleared by the caller.
Throws: GiveUpException If the callback does not want to supply a password. This may often be the case if the first attempt failed.
getPasswordAgain
will
be called on subsequent attempts.
Parameters: info Information about the token that is being logged into.
Returns: The password. This password object is owned by and will be cleared by the caller.
Throws: GiveUpException If the callback does not want to supply a password.