Class EnvelopedDataAbstract

Hierarchy (view full)

Methods

  • Return the plaintext for the ciphertext contained in the current EnvelopedData value.

    Parameters

    • privateKey: CryptoKey

      The private key to decrypt the ciphertext.

    Returns Promise<ArrayBuffer>

  • Return the id of the recipient's key used to encrypt the content.

    This id will often be the recipient's certificate's serial number, in which case the issuer will be ignored: This method is meant to be used by the recipient so it can look up the corresponding private key to decrypt the content. We could certainly extract the issuer to verify it matches the expected one, but if the id doesn't match any key decryption won't even be attempted, so there's really no risk from ignoring the issuer.

    Returns Buffer

  • Return the DER serialization of the current EnvelopedData value.

    It'll be wrapped around a ContentInfo value.

    Returns ArrayBuffer

Generated using TypeDoc