JSS 3.1

org.mozilla.jss.util
Class NullPasswordCallback

java.lang.Object
  |
  +--org.mozilla.jss.util.NullPasswordCallback

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(org.mozilla.jss.util.PasswordCallback)

Constructor Summary
NullPasswordCallback()
           
 
Method Summary
 Password getPasswordAgain(PasswordCallbackInfo info)
           
 Password getPasswordFirstAttempt(PasswordCallbackInfo info)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

NullPasswordCallback

public NullPasswordCallback()
Method Detail

getPasswordFirstAttempt

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

getPasswordAgain

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

JSS 3.1