Bouncy Castle Cryptography Library 1.87

org.bouncycastle.cms.jcajce
Class JceKEMAuthEnvelopedRecipient

java.lang.Object
  extended byorg.bouncycastle.cms.AbstractRecipient
      extended byorg.bouncycastle.cms.jcajce.JceKEMRecipient
          extended byorg.bouncycastle.cms.jcajce.JceKEMAuthEnvelopedRecipient
All Implemented Interfaces:
KEMRecipient, Recipient

public class JceKEMAuthEnvelopedRecipient
extends JceKEMRecipient

The KEM (RFC 9629 KEMRecipientInfo) recipient for CMS AuthEnvelopedData: decapsulates the key-encryption key and returns an AEAD input decryptor (e.g. AES-GCM) that verifies the authentication tag, the AuthEnveloped counterpart of JceKEMEnvelopedRecipient.


Field Summary
 
Fields inherited from class org.bouncycastle.cms.jcajce.JceKEMRecipient
contentHelper, extraMappings, helper, unwrappedKeyMustBeEncodable, validateKeySize
 
Constructor Summary
JceKEMAuthEnvelopedRecipient(java.security.PrivateKey recipientKey)
           
 
Method Summary
 RecipientOperator getRecipientOperator(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncryptionAlgorithm, org.bouncycastle.asn1.x509.AlgorithmIdentifier contentEncryptionAlgorithm, byte[] encryptedContentEncryptionKey)
           
 
Methods inherited from class org.bouncycastle.cms.jcajce.JceKEMRecipient
extractSecretKey, setAlgorithmMapping, setAllowedContentAlgorithms, setContentProvider, setContentProvider, setKeySizeValidation, setMinimumTagSize, setMustProduceEncodableUnwrappedKey, setProvider, setProvider
 
Methods inherited from class org.bouncycastle.cms.AbstractRecipient
checkContentAlgorithm, checkTagSize, isContentAlgorithmAllowed, setAllowedContentAlgorithmSet, setMinimumTagSizeInBits
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JceKEMAuthEnvelopedRecipient

public JceKEMAuthEnvelopedRecipient(java.security.PrivateKey recipientKey)
Method Detail

getRecipientOperator

public RecipientOperator getRecipientOperator(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncryptionAlgorithm,
                                              org.bouncycastle.asn1.x509.AlgorithmIdentifier contentEncryptionAlgorithm,
                                              byte[] encryptedContentEncryptionKey)
                                       throws CMSException
Throws:
CMSException

Bouncy Castle Cryptography Library 1.87