org.mozilla.jss.SecretDecoderRing
public class Decryptor extends Object
Constructor Summary | |
---|---|
Decryptor(CryptoToken token)
Creates a Decryptor for use with the given CryptoToken. |
Method Summary | |
---|---|
byte[] | decrypt(byte[] ciphertext)
Decrypts the given ciphertext. |
Parameters: ciphertext A DER-encoded Encoding object, created from a previous call to Encryptor.encrypt(), or with the NSS SecretDecoderRing.
Returns: The decrypted plaintext.
Throws: InvalidKeyException If no key can be found with the matching keyID.