org.bouncycastle.cms
Class KeyAgreeRecipientInformation
java.lang.Object
org.bouncycastle.cms.RecipientInformation
org.bouncycastle.cms.KeyAgreeRecipientInformation
public class KeyAgreeRecipientInformation
- extends RecipientInformation
the RecipientInfo class for a recipient who has been sent a message
encrypted using key agreement.
Methods inherited from class org.bouncycastle.cms.RecipientInformation |
getContent, getContent, getContent, getContentDigest, getContentFromSessionKey, getContentStream, getKeyEncryptionAlgOID, getKeyEncryptionAlgorithmParameters, getKeyEncryptionAlgorithmParameters, getKeyEncryptionAlgParams, getMac, getRID |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
- Deprecated. use getContentStream(Recipient) method
- 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
- Deprecated. use getContentStream(Recipient) method
- decrypt the content and return it
- Specified by:
getContentStream
in class RecipientInformation
- Throws:
CMSException
getRecipientOperator
protected RecipientOperator getRecipientOperator(Recipient recipient)
throws CMSException,
java.io.IOException
- Specified by:
getRecipientOperator
in class RecipientInformation
- Throws:
CMSException
java.io.IOException