Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ObjectDigestInfo

Represents the ObjectDigestInfo structure described in RFC5755

Hierarchy

Implements

Index

Constructors

Properties

digestAlgorithm: AlgorithmIdentifier
digestedObjectType: Enumerated
objectDigest: BitString
otherObjectTypeID?: ObjectIdentifier
CLASS_NAME: string = "ObjectDigestInfo"

Name of the class

Accessors

  • get className(): string

Methods

  • fromSchema(schema: any): void
  • toSchema(): Sequence
  • toString(encoding?: "base64" | "base64url" | "hex"): string
  • blockName(): string
  • defaultValues(memberName: "digestedObjectType"): Enumerated
  • defaultValues(memberName: "otherObjectTypeID"): ObjectIdentifier
  • defaultValues(memberName: "digestAlgorithm"): AlgorithmIdentifier
  • defaultValues(memberName: "objectDigest"): BitString
  • fromBER<T>(this: PkiObjectConstructor<T>, raw: BufferSource): T
  • Creates PKI object from the raw data

    Type Parameters

    Parameters

    • this: PkiObjectConstructor<T>
    • raw: BufferSource

      ASN.1 encoded raw data

    Returns T

    Initialized and filled current class object

  • Returns value of pre-defined ASN.1 schema for current class

    asn

    ASN.1 schema

    ObjectDigestInfo ::= SEQUENCE {
      digestedObjectType  ENUMERATED {
        publicKey            (0),
        publicKeyCert        (1),
        otherObjectTypes     (2) },
      -- otherObjectTypes MUST NOT
      -- be used in this profile
      otherObjectTypeID   OBJECT IDENTIFIER OPTIONAL,
      digestAlgorithm     AlgorithmIdentifier,
      objectDigest        BIT STRING
    }
    

    Parameters

    Returns any

    ASN.1 schema object

Generated using TypeDoc