org.bouncycastle.cms
public class KeyAgreeRecipientInformation extends RecipientInformation
| Constructor and Description |
|---|
KeyAgreeRecipientInformation(org.bouncycastle.asn1.cms.KeyAgreeRecipientInfo info,
org.bouncycastle.asn1.x509.AlgorithmIdentifier encAlg,
org.bouncycastle.asn1.x509.AlgorithmIdentifier macAlg,
java.io.InputStream data) |
KeyAgreeRecipientInformation(org.bouncycastle.asn1.cms.KeyAgreeRecipientInfo 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, getRIDpublic KeyAgreeRecipientInformation(org.bouncycastle.asn1.cms.KeyAgreeRecipientInfo info,
org.bouncycastle.asn1.x509.AlgorithmIdentifier encAlg,
java.io.InputStream data)
public KeyAgreeRecipientInformation(org.bouncycastle.asn1.cms.KeyAgreeRecipientInfo 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
CMSExceptionpublic CMSTypedStream getContentStream(java.security.Key key, java.lang.String prov) throws CMSException, java.security.NoSuchProviderException
getContentStream in class RecipientInformationCMSExceptionjava.security.NoSuchProviderExceptionpublic CMSTypedStream getContentStream(java.security.Key key, java.security.Provider prov) throws CMSException
getContentStream in class RecipientInformationCMSException