java.lang.Object | |
↳ | org.bouncycastle.cms.CMSEnvelopedData |
Known Direct Subclasses |
containing class for an CMS Enveloped Data object
Example of use - assuming the first recipient matches the private key we have.
CMSEnvelopedData ed = new CMSEnvelopedData(inputStream); RecipientInformationStore recipients = ed.getRecipientInfos(); Collection c = recipients.getRecipients(); Iterator it = c.iterator(); if (it.hasNext()) { RecipientInformation recipient = (RecipientInformation)it.next(); byte[] recData = recipient.getContent(new JceKeyTransEnvelopedRecipient(privateKey).setProvider("BC")); processData(recData); }
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
return the ContentInfo
| |||||||||||
return the ASN.1 encoded representation of this object.
| |||||||||||
return the object identifier for the content encryption algorithm.
| |||||||||||
return the ASN.1 encoded encryption algorithm parameters, or null if
there aren't any.
| |||||||||||
Return an AlgorithmParameters object giving the encryption parameters
used to encrypt the message content.
| |||||||||||
Return an AlgorithmParameters object giving the encryption parameters
used to encrypt the message content.
| |||||||||||
return a store of the intended recipients for this message
| |||||||||||
return a table of the unprotected attributes indexed by
the OID of the attribute.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
return the ContentInfo
return the ASN.1 encoded representation of this object.
IOException |
---|
return the object identifier for the content encryption algorithm.
return the ASN.1 encoded encryption algorithm parameters, or null if there aren't any.
Return an AlgorithmParameters object giving the encryption parameters used to encrypt the message content.
provider | the provider to generate the parameters for. |
---|
CMSException | if the algorithm cannot be found, or the parameters can't be parsed. |
---|---|
NoSuchProviderException | if the provider cannot be found. |
Return an AlgorithmParameters object giving the encryption parameters used to encrypt the message content.
provider | the provider to generate the parameters for. |
---|
CMSException | if the algorithm cannot be found, or the parameters can't be parsed. |
---|
return a store of the intended recipients for this message
return a table of the unprotected attributes indexed by the OID of the attribute.