Bouncy Castle Cryptography 1.46

org.bouncycastle.cms
Class KEKRecipientInformation

java.lang.Object
  extended by org.bouncycastle.cms.RecipientInformation
      extended by org.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
keyEncAlg, messageAlgorithm, rid
 
Method Summary
 CMSTypedStream getContentStream(java.security.Key key, java.security.Provider prov)
          decrypt the content and return an input stream.
 CMSTypedStream getContentStream(java.security.Key key, java.lang.String prov)
          decrypt the content and return an input stream.
protected  RecipientOperator getRecipientOperator(Recipient recipient)
           
 
Methods inherited from class org.bouncycastle.cms.RecipientInformation
getContent, getContent, getContent, getContentDigest, getContentFromSessionKey, getContentStream, getKeyEncryptionAlgOID, getKeyEncryptionAlgorithmParameters, getKeyEncryptionAlgorithmParameters, getKeyEncryptionAlgParams, getMac, getRID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getContentStream

public CMSTypedStream getContentStream(java.security.Key key,
                                       java.lang.String prov)
                                throws CMSException,
                                       java.security.NoSuchProviderException
decrypt the content and return an input stream.

Overrides:
getContentStream in class RecipientInformation
Throws:
CMSException
java.security.NoSuchProviderException

getContentStream

public CMSTypedStream getContentStream(java.security.Key key,
                                       java.security.Provider prov)
                                throws CMSException
decrypt the content and return an input stream.

Specified by:
getContentStream in class RecipientInformation
Throws:
CMSException

getRecipientOperator

protected RecipientOperator getRecipientOperator(Recipient recipient)
                                          throws CMSException,
                                                 java.io.IOException
Specified by:
getRecipientOperator in class RecipientInformation
Throws:
CMSException
java.io.IOException

Bouncy Castle Cryptography 1.46