org.bouncycastle.cms

Class KEKRecipientInformation


public class KEKRecipientInformation
extends RecipientInformation

the RecipientInfo class for a recipient who has been sent a message encrypted using a secret key known to the other side.

Field Summary

Fields inherited from class org.bouncycastle.cms.RecipientInformation

data, keyEncAlg, rid

Constructor Summary

KEKRecipientInformation(KEKRecipientInfo 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

KEKRecipientInformation

public KEKRecipientInformation(KEKRecipientInfo 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