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 java.lang.Object
- implements RecipientInfoGenerator
Constructor Summary |
protected |
KeyAgreeRecipientInfoGenerator(ASN1ObjectIdentifier keyAgreementOID,
SubjectPublicKeyInfo originatorKeyInfo,
ASN1ObjectIdentifier keyEncryptionOID)
|
Method Summary |
protected OriginatorPublicKey |
createOriginatorPublicKey(SubjectPublicKeyInfo originatorKeyInfo)
|
RecipientInfo |
generate(org.bouncycastle.operator.GenericKey contentEncryptionKey)
|
protected abstract ASN1Sequence |
generateRecipientEncryptedKeys(AlgorithmIdentifier keyAgreeAlgorithm,
AlgorithmIdentifier keyEncAlgorithm,
org.bouncycastle.operator.GenericKey contentEncryptionKey)
|
protected abstract ASN1Encodable |
getUserKeyingMaterial(AlgorithmIdentifier keyAgreeAlgorithm)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KeyAgreeRecipientInfoGenerator
protected KeyAgreeRecipientInfoGenerator(ASN1ObjectIdentifier keyAgreementOID,
SubjectPublicKeyInfo originatorKeyInfo,
ASN1ObjectIdentifier keyEncryptionOID)
generate
public RecipientInfo generate(org.bouncycastle.operator.GenericKey contentEncryptionKey)
throws CMSException
- Specified by:
generate
in interface RecipientInfoGenerator
- Throws:
CMSException
createOriginatorPublicKey
protected OriginatorPublicKey createOriginatorPublicKey(SubjectPublicKeyInfo originatorKeyInfo)
generateRecipientEncryptedKeys
protected abstract ASN1Sequence generateRecipientEncryptedKeys(AlgorithmIdentifier keyAgreeAlgorithm,
AlgorithmIdentifier keyEncAlgorithm,
org.bouncycastle.operator.GenericKey contentEncryptionKey)
throws CMSException
- Throws:
CMSException
getUserKeyingMaterial
protected abstract ASN1Encodable getUserKeyingMaterial(AlgorithmIdentifier keyAgreeAlgorithm)
throws CMSException
- Throws:
CMSException