com.digt.trusted.cms
Class KeyTransRecipientInformation

java.lang.Object
  extended by com.digt.trusted.cms.RecipientInformation
      extended by com.digt.trusted.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 com.digt.trusted.cms.RecipientInformation
data, keyEncAlg, rid
 
Constructor Summary
KeyTransRecipientInformation(KeyTransRecipientInfo info, EncryptedContentInfo data)
           
 
Method Summary
 byte[] getContent(java.security.Key key, java.lang.String prov)
          decrypt the content and return it as a byte array.
 byte[] getGOSTContent(java.security.Key key, java.lang.String prov, java.io.DataInputStream input_p7m_file)
           
 
Methods inherited from class com.digt.trusted.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

KeyTransRecipientInformation

public KeyTransRecipientInformation(KeyTransRecipientInfo info,
                                    EncryptedContentInfo data)
Method Detail

getGOSTContent

public byte[] getGOSTContent(java.security.Key key,
                             java.lang.String prov,
                             java.io.DataInputStream input_p7m_file)
                      throws CMSException,
                             java.security.NoSuchProviderException
Specified by:
getGOSTContent in class RecipientInformation
Throws:
CMSException
java.security.NoSuchProviderException

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