Class KEMRecipientInfo

java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.cms.KEMRecipientInfo
All Implemented Interfaces:
org.bouncycastle.asn1.ASN1Encodable, org.bouncycastle.util.Encodable

public class KEMRecipientInfo extends org.bouncycastle.asn1.ASN1Object

Defined in RFC 9629.

   KEMRecipientInfo ::= SEQUENCE {
     version CMSVersion,  -- always set to 0
     rid RecipientIdentifier,
     kem KEMAlgorithmIdentifier,
     kemct OCTET STRING,
     kdf KeyDerivationAlgorithmIdentifier,
     kekLength INTEGER (1..65535),
     ukm [0] EXPLICIT UserKeyingMaterial OPTIONAL,
     wrap KeyEncryptionAlgorithmIdentifier,
     encryptedKey EncryptedKey }
 
  • Constructor Summary

    Constructors
    Constructor
    Description
    KEMRecipientInfo(RecipientIdentifier rid, org.bouncycastle.asn1.x509.AlgorithmIdentifier kem, org.bouncycastle.asn1.ASN1OctetString kemct, org.bouncycastle.asn1.x509.AlgorithmIdentifier kdf, org.bouncycastle.asn1.ASN1Integer kekLength, org.bouncycastle.asn1.ASN1OctetString ukm, org.bouncycastle.asn1.x509.AlgorithmIdentifier wrap, org.bouncycastle.asn1.ASN1OctetString encryptedKey)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.bouncycastle.asn1.ASN1OctetString
     
     
    org.bouncycastle.asn1.x509.AlgorithmIdentifier
     
    org.bouncycastle.asn1.x509.AlgorithmIdentifier
     
    org.bouncycastle.asn1.ASN1OctetString
     
     
    byte[]
     
    org.bouncycastle.asn1.x509.AlgorithmIdentifier
     
    org.bouncycastle.asn1.ASN1Primitive
     

    Methods inherited from class org.bouncycastle.asn1.ASN1Object

    encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • KEMRecipientInfo

      public KEMRecipientInfo(RecipientIdentifier rid, org.bouncycastle.asn1.x509.AlgorithmIdentifier kem, org.bouncycastle.asn1.ASN1OctetString kemct, org.bouncycastle.asn1.x509.AlgorithmIdentifier kdf, org.bouncycastle.asn1.ASN1Integer kekLength, org.bouncycastle.asn1.ASN1OctetString ukm, org.bouncycastle.asn1.x509.AlgorithmIdentifier wrap, org.bouncycastle.asn1.ASN1OctetString encryptedKey)
  • Method Details

    • getInstance

      public static KEMRecipientInfo getInstance(Object o)
    • getRecipientIdentifier

      public RecipientIdentifier getRecipientIdentifier()
    • getKem

      public org.bouncycastle.asn1.x509.AlgorithmIdentifier getKem()
    • getKemct

      public org.bouncycastle.asn1.ASN1OctetString getKemct()
    • getKdf

      public org.bouncycastle.asn1.x509.AlgorithmIdentifier getKdf()
    • getWrap

      public org.bouncycastle.asn1.x509.AlgorithmIdentifier getWrap()
    • getUkm

      public byte[] getUkm()
    • getEncryptedKey

      public org.bouncycastle.asn1.ASN1OctetString getEncryptedKey()
    • toASN1Primitive

      public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()
      Specified by:
      toASN1Primitive in interface org.bouncycastle.asn1.ASN1Encodable
      Specified by:
      toASN1Primitive in class org.bouncycastle.asn1.ASN1Object