|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PasswordCallback
Represents a password callback, which is called to login to the key database and to PKCS #11 tokens.
The simplest implementation of a PasswordCallback is a Password object.
Password
,
NullPasswordCallback
,
ConsolePasswordCallback
,
CryptoManager.setPasswordCallback(org.mozilla.jss.util.PasswordCallback)
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. |
Method Detail |
---|
Password getPasswordFirstAttempt(PasswordCallbackInfo info) throws PasswordCallback.GiveUpException
getPasswordAgain
will
be called on subsequent attempts.
info
- Information about the token that is being logged into.
PasswordCallback.GiveUpException
- If the callback does not want to supply
a password.Password getPasswordAgain(PasswordCallbackInfo info) throws PasswordCallback.GiveUpException
GiveUpException
.
info
- Information about the token that is being logged into.
PasswordCallback.GiveUpException
- If the callback does not want to supply
a password. This may often be the case if the first attempt failed.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |