Package org.bouncycastle.cms
Class KeyAgreeRecipientInfoGenerator
java.lang.Object
org.bouncycastle.cms.KeyAgreeRecipientInfoGenerator
- All Implemented Interfaces:
RecipientInfoGenerator
- Direct Known Subclasses:
JceKeyAgreeRecipientInfoGenerator
public abstract class KeyAgreeRecipientInfoGenerator
extends Object
implements RecipientInfoGenerator
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedKeyAgreeRecipientInfoGenerator(ASN1ObjectIdentifier keyAgreementOID, SubjectPublicKeyInfo originatorKeyInfo, ASN1ObjectIdentifier keyEncryptionOID) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.bouncycastle.asn1.cms.OriginatorPublicKeycreateOriginatorPublicKey(SubjectPublicKeyInfo originatorKeyInfo) org.bouncycastle.asn1.cms.RecipientInfogenerate(GenericKey contentEncryptionKey) protected abstract ASN1SequencegenerateRecipientEncryptedKeys(AlgorithmIdentifier keyAgreeAlgorithm, AlgorithmIdentifier keyEncAlgorithm, GenericKey contentEncryptionKey) protected abstract byte[]getUserKeyingMaterial(AlgorithmIdentifier keyAgreeAlgorithm)
-
Constructor Details
-
KeyAgreeRecipientInfoGenerator
protected KeyAgreeRecipientInfoGenerator(ASN1ObjectIdentifier keyAgreementOID, SubjectPublicKeyInfo originatorKeyInfo, ASN1ObjectIdentifier keyEncryptionOID)
-
-
Method Details
-
generate
public org.bouncycastle.asn1.cms.RecipientInfo generate(GenericKey contentEncryptionKey) throws CMSException - Specified by:
generatein interfaceRecipientInfoGenerator- Throws:
CMSException
-
createOriginatorPublicKey
protected org.bouncycastle.asn1.cms.OriginatorPublicKey createOriginatorPublicKey(SubjectPublicKeyInfo originatorKeyInfo) -
generateRecipientEncryptedKeys
protected abstract ASN1Sequence generateRecipientEncryptedKeys(AlgorithmIdentifier keyAgreeAlgorithm, AlgorithmIdentifier keyEncAlgorithm, GenericKey contentEncryptionKey) throws CMSException - Throws:
CMSException
-
getUserKeyingMaterial
protected abstract byte[] getUserKeyingMaterial(AlgorithmIdentifier keyAgreeAlgorithm) throws CMSException - Throws:
CMSException
-