public class KeyTransRecipientInformation extends RecipientInformation
Constructor and Description |
---|
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) |
Modifier and Type | Method and Description |
---|---|
CMSTypedStream |
getContentStream(java.security.Key key,
java.security.Provider prov) |
CMSTypedStream |
getContentStream(java.security.Key key,
java.lang.String prov)
decrypt the content and return it
|
protected java.security.Key |
getSessionKey(java.security.Key receiverPrivateKey,
java.security.Provider prov) |
getContent, getContent, getContentFromSessionKey, getKeyEncryptionAlgOID, getKeyEncryptionAlgorithmParameters, getKeyEncryptionAlgorithmParameters, getKeyEncryptionAlgParams, getMac, getRID
public KeyTransRecipientInformation(org.bouncycastle.asn1.cms.KeyTransRecipientInfo info, org.bouncycastle.asn1.x509.AlgorithmIdentifier encAlg, java.io.InputStream data)
public KeyTransRecipientInformation(org.bouncycastle.asn1.cms.KeyTransRecipientInfo info, org.bouncycastle.asn1.x509.AlgorithmIdentifier encAlg, org.bouncycastle.asn1.x509.AlgorithmIdentifier macAlg, java.io.InputStream data)
protected java.security.Key getSessionKey(java.security.Key receiverPrivateKey, java.security.Provider prov) throws CMSException
CMSException
public CMSTypedStream getContentStream(java.security.Key key, java.lang.String prov) throws CMSException, java.security.NoSuchProviderException
getContentStream
in class RecipientInformation
CMSException
java.security.NoSuchProviderException
public CMSTypedStream getContentStream(java.security.Key key, java.security.Provider prov) throws CMSException
getContentStream
in class RecipientInformation
CMSException