|
Bouncy Castle Cryptography Library 1.87 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.bouncycastle.cms.CMSEncryptedData
| Constructor Summary | |
CMSEncryptedData(byte[] encryptedData)
Create a CMSEncryptedData object from its encoding. |
|
CMSEncryptedData(org.bouncycastle.asn1.cms.ContentInfo contentInfo)
Create a CMSEncryptedData object from an already-parsed ContentInfo. |
|
CMSEncryptedData(java.io.InputStream encryptedData)
Create a CMSEncryptedData object from a stream. |
|
| Method Summary | |
byte[] |
getContent(InputDecryptorProvider inputDecryptorProvider)
|
CMSTypedStream |
getContentStream(InputDecryptorProvider inputDecryptorProvider)
|
org.bouncycastle.asn1.cms.ContentInfo |
toASN1Structure()
return the ContentInfo |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CMSEncryptedData(byte[] encryptedData)
throws CMSException
encryptedData - the complete encoding of the EncryptedData structure (a CMS ContentInfo).
The array must hold the entire encoding and nothing extra - trailing bytes
beyond the EncryptedData are not permitted.
CMSException - if the encoding cannot be parsed as an EncryptedData.
public CMSEncryptedData(java.io.InputStream encryptedData)
throws CMSException
encryptedData - a stream positioned at the start of the EncryptedData encoding (a CMS ContentInfo).
CMSException - if the encoding cannot be parsed as an EncryptedData.public CMSEncryptedData(org.bouncycastle.asn1.cms.ContentInfo contentInfo)
Note: unlike the sibling CMS container constructors this one is not declared to throw CMSException; malformed inner content surfaces as an IllegalArgumentException.
contentInfo - the ContentInfo carrying the EncryptedData.| Method Detail |
public byte[] getContent(InputDecryptorProvider inputDecryptorProvider)
throws CMSException
CMSException
public CMSTypedStream getContentStream(InputDecryptorProvider inputDecryptorProvider)
throws CMSException
CMSExceptionpublic org.bouncycastle.asn1.cms.ContentInfo toASN1Structure()
|
Bouncy Castle Cryptography Library 1.87 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||