Bouncy Castle Cryptography Library 1.40

org.bouncycastle.cms
Class PasswordRecipientInformation

java.lang.Object
  extended by org.bouncycastle.cms.RecipientInformation
      extended by org.bouncycastle.cms.PasswordRecipientInformation

public class PasswordRecipientInformation
extends RecipientInformation

the RecipientInfo class for a recipient who has been sent a message encrypted using a password.


Field Summary
 
Fields inherited from class org.bouncycastle.cms.RecipientInformation
_data, _keyEncAlg, _rid
 
Constructor Summary
PasswordRecipientInformation(org.bouncycastle.asn1.cms.PasswordRecipientInfo info, org.bouncycastle.asn1.x509.AlgorithmIdentifier encAlg, java.io.InputStream data)
           
 
Method Summary
 CMSTypedStream getContentStream(java.security.Key key, java.lang.String prov)
          decrypt the content and return an input stream.
 
Methods inherited from class org.bouncycastle.cms.RecipientInformation
getContent, 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

PasswordRecipientInformation

public PasswordRecipientInformation(org.bouncycastle.asn1.cms.PasswordRecipientInfo info,
                                    org.bouncycastle.asn1.x509.AlgorithmIdentifier encAlg,
                                    java.io.InputStream data)
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.

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

Bouncy Castle Cryptography Library 1.40