org.mozilla.jss.util

Class NullPasswordCallback

Implemented Interfaces:
PasswordCallback

public class NullPasswordCallback
extends java.lang.Object
implements PasswordCallback

A PasswordCallback that immediately gives up. This should be used when a user is not available to enter a password. Any operations that require a password will fail if this is used, unless the token has already been logged in manually.
See Also:
CryptoToken.login(PasswordCallback)

Method Summary

Password
getPasswordAgain(PasswordCallbackInfo info)
Password
getPasswordFirstAttempt(PasswordCallbackInfo info)

Method Details

getPasswordAgain

public Password getPasswordAgain(PasswordCallbackInfo info)
            throws PasswordCallback.GiveUpException
Specified by:
getPasswordAgain in interface PasswordCallback

getPasswordFirstAttempt

public Password getPasswordFirstAttempt(PasswordCallbackInfo info)
            throws PasswordCallback.GiveUpException
Specified by:
getPasswordFirstAttempt in interface PasswordCallback