org.bouncycastle.cms

Class KeyAgreeRecipientInformation


public class KeyAgreeRecipientInformation
extends RecipientInformation

the RecipientInfo class for a recipient who has been sent a message encrypted using key agreement.

Field Summary

Fields inherited from class org.bouncycastle.cms.RecipientInformation

_data, _encAlg, _keyEncAlg, _rid

Constructor Summary

KeyAgreeRecipientInformation(KeyAgreeRecipientInfo info, AlgorithmIdentifier encAlg, InputStream data)

Method Summary

CMSTypedStream
getContentStream(Key key, String prov)
decrypt the content and return an input stream.

Methods inherited from class org.bouncycastle.cms.RecipientInformation

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

Constructor Details

KeyAgreeRecipientInformation

public KeyAgreeRecipientInformation(KeyAgreeRecipientInfo info,
                                    AlgorithmIdentifier encAlg,
                                    InputStream data)

Method Details

getContentStream

public CMSTypedStream getContentStream(Key key,
                                       String prov)
            throws CMSException,
                   NoSuchProviderException
decrypt the content and return an input stream.
Overrides:
getContentStream in interface RecipientInformation