Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Accuracy

Represents the time deviation around the UTC time contained in GeneralizedTime. Described in RFC3161

Hierarchy

Implements

Index

Constructors

Properties

micros?: number

Microseconds

millis?: number

Milliseconds

seconds?: number

Seconds

CLASS_NAME: string = "Accuracy"

Name of the class

Accessors

  • get className(): string

Methods

  • fromSchema(schema: any): void
  • toSchema(): Sequence
  • toString(encoding?: "base64" | "base64url" | "hex"): string
  • blockName(): string
  • compareWithDefault(memberName: "seconds" | "millis" | "micros", memberValue: number): boolean
  • compareWithDefault(memberName: string, memberValue: any): boolean
  • Compare values with default values for all class members

    Parameters

    • memberName: "seconds" | "millis" | "micros"

      String name for a class member

    • memberValue: number

      Value to compare with default value

    Returns boolean

  • Parameters

    • memberName: string
    • memberValue: any

    Returns boolean

  • defaultValues(memberName: "seconds"): number
  • defaultValues(memberName: "millis"): number
  • defaultValues(memberName: "micros"): number
  • defaultValues(memberName: string): any
  • Returns default values for all class members

    Parameters

    • memberName: "seconds"

      String name for a class member

    Returns number

    Default value

  • Parameters

    • memberName: "millis"

    Returns number

  • Parameters

    • memberName: "micros"

    Returns number

  • Parameters

    • memberName: string

    Returns any

  • 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

    Accuracy ::= SEQUENCE {
       seconds        INTEGER              OPTIONAL,
       millis     [0] INTEGER  (1..999)    OPTIONAL,
       micros     [1] INTEGER  (1..999)    OPTIONAL  }
    

    Parameters

    Returns any

    ASN.1 schema object

Generated using TypeDoc