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, _encAlg, _keyEncAlg, _rid

Constructor Summary

KeyTransRecipientInformation(KeyTransRecipientInfo info, AlgorithmIdentifier encAlg, InputStream data)

Method Summary

CMSTypedStream
getContentStream(Key key, String prov)
decrypt the content and return it as a byte array.

Methods inherited from class org.bouncycastle.cms.RecipientInformation

getContent, getContentFromSessionKey, getContentStream, getDataEncryptionAlgorithmName, getKeyEncryptionAlgOID, getKeyEncryptionAlgParams, getKeyEncryptionAlgorithmParameters, getRID

Constructor Details

KeyTransRecipientInformation

public KeyTransRecipientInformation(KeyTransRecipientInfo info,
                                    AlgorithmIdentifier encAlg,
                                    InputStream data)

Method Details

getContentStream

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