public class Decryptor
extends java.lang.Object
Constructor | Description |
---|---|
Decryptor(CryptoToken token) |
Creates a Decryptor for use with the given CryptoToken.
|
Modifier and Type | Method | 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