public class Decryptor
extends java.lang.Object
Constructor and Description |
---|
Decryptor(CryptoToken token)
Creates a Decryptor for use with the given CryptoToken.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
decrypt(byte[] ciphertext)
Decrypts the given ciphertext.
|
public Decryptor(CryptoToken token)
public byte[] decrypt(byte[] ciphertext) throws NotInitializedException, java.security.GeneralSecurityException, TokenException
ciphertext
- A DER-encoded Encoding object, created from a previous
call to Encryptor.encrypt(), or with the NSS SecretDecoderRing.java.security.InvalidKeyException
- If no key can be found with the matching
keyID.NotInitializedException
java.security.GeneralSecurityException
TokenException