Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TBSRequest

Represents the TBSRequest structure described in RFC6960

Hierarchy

Implements

Index

Constructors

Properties

requestExtensions?: Extension[]
requestList: Request[]
requestorName?: GeneralName
tbsView: Uint8Array
version?: number
CLASS_NAME: string = "TBSRequest"

Name of the class

Accessors

  • get className(): string
  • get tbs(): ArrayBuffer
  • set tbs(value: ArrayBuffer): void

Methods

  • fromSchema(schema: any): void
  • toSchema(encodeFlag?: boolean): Sequence
  • Convert current object to asn1js object and set correct values

    Parameters

    • encodeFlag: boolean = false

      If param equal to false then create TBS schema via decoding stored value. In othe case create TBS schema via assembling from TBS parts.

    Returns Sequence

    asn1js object

  • toString(encoding?: "base64" | "base64url" | "hex"): string
  • blockName(): string
  • compareWithDefault(memberName: string, memberValue: any): boolean
  • 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

  • defaultValues(memberName: "tbs"): ArrayBuffer
  • defaultValues(memberName: "version"): number
  • defaultValues(memberName: "requestorName"): GeneralName
  • defaultValues(memberName: "requestList"): Request[]
  • defaultValues(memberName: "requestExtensions"): Extension[]
  • 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

    TBSRequest ::= SEQUENCE {
       version             [0]     EXPLICIT Version DEFAULT v1,
       requestorName       [1]     EXPLICIT GeneralName OPTIONAL,
       requestList                 SEQUENCE OF Request,
       requestExtensions   [2]     EXPLICIT Extensions OPTIONAL }
    

    Parameters

    Returns any

    ASN.1 schema object

Generated using TypeDoc