public class SplitDirectRecipientInformation extends org.bouncycastle.cms.KeyTransRecipientInformation implements DirectRecipientInformation
| Constructor and Description |
|---|
SplitDirectRecipientInformation(org.bouncycastle.asn1.cms.KeyTransRecipientInfo info,
org.bouncycastle.asn1.x509.AlgorithmIdentifier encAlg,
InputStream data,
String encProvider,
String keyEncProvider)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
org.bouncycastle.cms.CMSTypedStream |
getContentStream(Key key,
String prov) |
byte[] |
getDecryptedContent(Key key)
Gets the decrypted content of a message.
|
public SplitDirectRecipientInformation(org.bouncycastle.asn1.cms.KeyTransRecipientInfo info,
org.bouncycastle.asn1.x509.AlgorithmIdentifier encAlg,
InputStream data,
String encProvider,
String keyEncProvider)
info - The recip infoencAlg - The encryption algorithm.data - The data that is to be decrypted.encProvider - The name of the JCE provider used to decrypt the messgae content using the message symmetric key.keyEncProvider - The name of the JCE provider used to decrypt the messgae content using the message symmetric key. This
is sometime known as the key encryption key provider.public byte[] getDecryptedContent(Key key) throws org.bouncycastle.cms.CMSException, NoSuchProviderException
getDecryptedContent in interface DirectRecipientInformationkey - The RSA private key used to encrypt the message's symmetric key.org.bouncycastle.cms.CMSExceptionNoSuchProviderExceptionpublic org.bouncycastle.cms.CMSTypedStream getContentStream(Key key, String prov) throws org.bouncycastle.cms.CMSException, NoSuchProviderException
getContentStream in class org.bouncycastle.cms.KeyTransRecipientInformationorg.bouncycastle.cms.CMSExceptionNoSuchProviderExceptionCopyright © 2010-2016 NHIN Direct. All Rights Reserved.