Readonly defaultReadonly isisLoggedIn
Current login state of the token used for encryption. If the user is not logged in, performing a crypto operation will result in a primary password prompt.
Readonly uiuiBusy
True when a primary password prompt is being displayed.
Optional aInstancePtr: objectA run time mechanism for interface discovery.
NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not.
aInstancePtr must not be null.
[in] A requested interface IID
[out] A pointer to an interface pointer to receive the result.
decrypt
The string to be decrypted.
Decrypts the specified string, returning the plaintext value.
Can throw if the user cancels entry of their primary password, or if the cipherText value can not be successfully decrypted (eg, if it was encrypted with some other key).
The strings to be decrypted.
Decrypts the specified strings, returning the plaintext values.
Can throw if the user cancels entry of their primary password, or if the cipherText value can not be successfully decrypted (eg, if it was encrypted with some other key).
encrypt
The string to be encrypted.
Encrypts the specified string, returning the ciphertext value.
NOTE: The current implemention of this inferface simply uses NSS/PSM's "Secret Decoder Ring" service. It is not recommended for general purpose encryption/decryption.
Can throw if the user cancels entry of their primary password.
Generated using TypeDoc
defaultEncType
Default encryption type used by an implementation of this interface.