Bouncy Castle Cryptography 1.28

org.bouncycastle.cms
Class KEKRecipientInformation

java.lang.Object
  extended byorg.bouncycastle.cms.RecipientInformation
      extended byorg.bouncycastle.cms.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(org.bouncycastle.asn1.cms.KEKRecipientInfo info, org.bouncycastle.asn1.cms.EncryptedContentInfo data)
           
 
Method Summary
 byte[] getContent(java.security.Key key, java.lang.String prov)
          decrypt the content and return it as a byte array.
 
Methods inherited from class org.bouncycastle.cms.RecipientInformation
getContentFromSessionKey, getKeyEncryptionAlgOID, getKeyEncryptionAlgorithmParameters, getKeyEncryptionAlgParams, getRID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KEKRecipientInformation

public KEKRecipientInformation(org.bouncycastle.asn1.cms.KEKRecipientInfo info,
                               org.bouncycastle.asn1.cms.EncryptedContentInfo data)
Method Detail

getContent

public byte[] getContent(java.security.Key key,
                         java.lang.String prov)
                  throws CMSException,
                         java.security.NoSuchProviderException
decrypt the content and return it as a byte array.

Specified by:
getContent in class RecipientInformation
Throws:
CMSException
java.security.NoSuchProviderException

Bouncy Castle Cryptography 1.28