org.bouncycastle.cms

Class KeyTransRecipientInformation


public class KeyTransRecipientInformation
extends RecipientInformation

the KeyTransRecipientInformation class for a recipient who has been sent a secret key encrypted using their public key that needs to be used to extract the message.

Field Summary

Fields inherited from class org.bouncycastle.cms.RecipientInformation

data, keyEncAlg, rid

Constructor Summary

KeyTransRecipientInformation(KeyTransRecipientInfo info, EncryptedContentInfo data)

Method Summary

byte[]
getContent(Key key, String prov)
decrypt the content and return it as a byte array.

Methods inherited from class org.bouncycastle.cms.RecipientInformation

getContent, getContentFromSessionKey, getKeyEncryptionAlgOID, getKeyEncryptionAlgParams, getKeyEncryptionAlgorithmParameters, getRID

Constructor Details

KeyTransRecipientInformation

public KeyTransRecipientInformation(KeyTransRecipientInfo info,
                                    EncryptedContentInfo data)

Method Details

getContent

public byte[] getContent(Key key,
                         String prov)
            throws CMSException,
                   NoSuchProviderException
decrypt the content and return it as a byte array.
Overrides:
getContent in interface RecipientInformation