public class NullPasswordCallback extends java.lang.Object implements PasswordCallback
PasswordCallback.GiveUpException
Constructor and Description |
---|
NullPasswordCallback() |
Modifier and Type | Method and Description |
---|---|
Password |
getPasswordAgain(PasswordCallbackInfo info)
Tries supplying a password again.
|
Password |
getPasswordFirstAttempt(PasswordCallbackInfo info)
Supplies a password.
|
public Password getPasswordFirstAttempt(PasswordCallbackInfo info) throws PasswordCallback.GiveUpException
PasswordCallback
getPasswordAgain
will
be called on subsequent attempts.getPasswordFirstAttempt
in interface PasswordCallback
info
- Information about the token that is being logged into.PasswordCallback.GiveUpException
- If the callback does not want to supply
a password.public Password getPasswordAgain(PasswordCallbackInfo info) throws PasswordCallback.GiveUpException
PasswordCallback
GiveUpException
.getPasswordAgain
in interface PasswordCallback
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.