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, getRID
public 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
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