org.bouncycastle.cms
Class KeyTransRecipientInformation
java.lang.Object
org.bouncycastle.cms.RecipientInformation
org.bouncycastle.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.
Constructor Summary |
KeyTransRecipientInformation(org.bouncycastle.asn1.cms.KeyTransRecipientInfo info,
org.bouncycastle.asn1.x509.AlgorithmIdentifier encAlg,
org.bouncycastle.asn1.x509.AlgorithmIdentifier macAlg,
java.io.InputStream data)
|
KeyTransRecipientInformation(org.bouncycastle.asn1.cms.KeyTransRecipientInfo info,
org.bouncycastle.asn1.x509.AlgorithmIdentifier encAlg,
java.io.InputStream data)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KeyTransRecipientInformation
public KeyTransRecipientInformation(org.bouncycastle.asn1.cms.KeyTransRecipientInfo info,
org.bouncycastle.asn1.x509.AlgorithmIdentifier encAlg,
java.io.InputStream data)
KeyTransRecipientInformation
public KeyTransRecipientInformation(org.bouncycastle.asn1.cms.KeyTransRecipientInfo info,
org.bouncycastle.asn1.x509.AlgorithmIdentifier encAlg,
org.bouncycastle.asn1.x509.AlgorithmIdentifier macAlg,
java.io.InputStream data)
getSessionKey
protected java.security.Key getSessionKey(java.security.Key receiverPrivateKey,
java.security.Provider prov)
throws CMSException
- Throws:
CMSException
getContentStream
public CMSTypedStream getContentStream(java.security.Key key,
java.lang.String prov)
throws CMSException,
java.security.NoSuchProviderException
- decrypt the content and return it
- Overrides:
getContentStream
in class RecipientInformation
- Throws:
CMSException
java.security.NoSuchProviderException
getContentStream
public CMSTypedStream getContentStream(java.security.Key key,
java.security.Provider prov)
throws CMSException
- Specified by:
getContentStream
in class RecipientInformation
- Throws:
CMSException