Bouncy Castle Cryptography 1.46

org.bouncycastle.cms
Class KeyTransRecipientInformation

java.lang.Object
  extended by org.bouncycastle.cms.RecipientInformation
      extended by org.bouncycastle.cms.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
keyEncAlg, messageAlgorithm, rid
 
Method Summary
 CMSTypedStream getContentStream(java.security.Key key, java.security.Provider prov)
          Deprecated. use getContentStream(Recipient) method
 CMSTypedStream getContentStream(java.security.Key key, java.lang.String prov)
          Deprecated. use getContentStream(Recipient) method
protected  RecipientOperator getRecipientOperator(Recipient recipient)
           
protected  java.security.Key getSessionKey(java.security.Key receiverPrivateKey, java.security.Provider prov)
          Deprecated.  
 
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

getSessionKey

protected java.security.Key getSessionKey(java.security.Key receiverPrivateKey,
                                          java.security.Provider prov)
                                   throws CMSException
Deprecated. 

Throws:
CMSException

getContentStream

public CMSTypedStream getContentStream(java.security.Key key,
                                       java.lang.String prov)
                                throws CMSException,
                                       java.security.NoSuchProviderException
Deprecated. use getContentStream(Recipient) method

decrypt the content and return it

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

getContentStream

public CMSTypedStream getContentStream(java.security.Key key,
                                       java.security.Provider prov)
                                throws CMSException
Deprecated. use getContentStream(Recipient) method

decrypt the content and return it

Specified by:
getContentStream in class RecipientInformation
Throws:
CMSException

getRecipientOperator

protected RecipientOperator getRecipientOperator(Recipient recipient)
                                          throws CMSException
Specified by:
getRecipientOperator in class RecipientInformation
Throws:
CMSException

Bouncy Castle Cryptography 1.46