Class Time

Represents the Time structure described in RFC5280

Hierarchy

Implements

Constructors

Properties

type: TimeType

0 - UTCTime; 1 - GeneralizedTime; 2 - empty value

value: Date

Value of the TIME class

CLASS_NAME: string = "Time"

Name of the class

Accessors

  • get className(): string
  • Returns string

Methods

  • Converts parsed ASN.1 object into current class

    Parameters

    • schema: any

      ASN.1 schema

    Returns void

  • Converts current object to ASN.1 object and sets correct values

    Returns

    ASN.1 object

    Returns UTCTime | GeneralizedTime

  • Parameters

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

    Returns string

  • Returns default values for all class members

    Returns

    Default value

    Parameters

    • memberName: "type"

      String name for a class member

    Returns TimeType

  • Parameters

    • memberName: "value"

    Returns Date

  • 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

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

    Returns

    ASN.1 schema object

    Parameters

    • parameters: TimeSchema = {}

      Input parameters for the schema

    • optional: boolean = false

      Flag that current schema should be optional

    Returns any

Generated using TypeDoc