Class EncryptedContentInfo

Represents the EncryptedContentInfo structure described in RFC5652

Hierarchy

Implements

Constructors

Properties

contentEncryptionAlgorithm: AlgorithmIdentifier
contentType: string
encryptedContent?: OctetString
CLASS_NAME: string = "EncryptedContentInfo"

Name of the class

Accessors

  • get className(): string
  • Returns string

Methods

  • Returns concatenated buffer from encryptedContent field.

    Returns

    Array buffer

    Since

    3.0.0

    Throws

    Throws Error if encryptedContent is undefined

    Returns ArrayBuffer

  • Parameters

    • encoding: "base64" | "base64url" | "hex" = "hex"

    Returns string

  • Compare values with default values for all class members

    Parameters

    • memberName: string

      String name for a class member

    • memberValue: any

      Value to compare with default value

    Returns boolean

  • Creates PKI object from the raw data

    Returns

    Initialized and filled current class object

    Type Parameters

    Parameters

    • this: PkiObjectConstructor<T>
    • raw: BufferSource

      ASN.1 encoded raw data

    Returns T

Generated using TypeDoc