[scriptable, uuid(51191434-1dd2-11b2-a17c-e49c4e99a4e3)]
interface nsIPK11Token : nsISupports

Constants


          
const long ASK_EVERY_TIME = -1

          
const long ASK_FIRST_TIME = 0

          
const long ASK_EXPIRE_TIME = 1

Attributes


          
readonly attribute long minimumPasswordLength

          
readonly attribute boolean needsUserInit

          
readonly attribute wstring tokenFWVersion

          
readonly attribute wstring tokenHWVersion

          
readonly attribute wstring tokenLabel

          
readonly attribute wstring tokenManID

          
readonly attribute wstring tokenName

          
readonly attribute wstring tokenSerialNumber

Methods


          
void changePassword(in wstring oldPassword, in wstring newPassword)

          
boolean checkPassword(in wstring password)

          
long getAskPasswordTimeout()

          
long getAskPasswordTimes()

          
void initPassword(in wstring initialPassword)

          
boolean isFriendly()

          
boolean isHardwareToken()

          
boolean isLoggedIn()

          
void login(in boolean force)

          
void logoutAndDropAuthenticatedResources()

          
void logoutSimple()

          
boolean needsLogin()

          
void reset()

          
void setAskPasswordDefaults([const] in long askTimes, [const] in long timeout)