Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TSTInfo

Represents the TSTInfo structure described in RFC3161

Hierarchy

Implements

Index

Constructors

Properties

accuracy?: Accuracy

Represents the time deviation around the UTC time contained in GeneralizedTime

extensions?: Extension[]

Additional information in the future. Extensions is defined in RFC2459

genTime: Date

Time at which the time-stamp token has been created by the TSA

messageImprint: MessageImprint

The messageImprint MUST have the same value as the similar field in TimeStampReq, provided that the size of the hash value matches the expected size of the hash algorithm identified in hashAlgorithm.

nonce?: Integer

Field MUST be present if it was present in the TimeStampReq. In such a case it MUST equal the value provided in the TimeStampReq structure.

ordering?: boolean

If the ordering field is missing, or if the ordering field is present and set to false, then the genTime field only indicates the time at which the time-stamp token has been created by the TSA.In such a case, the ordering of time-stamp tokens issued by the same TSA or different TSAs is only possible when the difference between the genTime of the first time-stamp token and the genTime of the second time-stamp token is greater than the sum of the accuracies of the genTime for each time-stamp token.

If the ordering field is present and set to true, every time-stamp token from the same TSA can always be ordered based on the genTime field, regardless of the genTime accuracy.

policy: string

TSA's policy under which the response was produced.

If a similar field was present in the TimeStampReq, then it MUST have the same value, otherwise an error (unacceptedPolicy) MUST be returned

serialNumber: Integer

Integer assigned by the TSA to each TimeStampToken.

It MUST be unique for each TimeStampToken issued by a given TSA.

tsa field is to give a hint in identifying the name of the TSA. If present, it MUST correspond to one of the subject names included in the certificate that is to be used to verify the token.

version: number

Version of the time-stamp token.

Conforming time-stamping servers MUST be able to provide version 1 time-stamp tokens.

CLASS_NAME: string = "TSTInfo"

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: 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: "version"): number
  • defaultValues(memberName: "policy"): string
  • defaultValues(memberName: "messageImprint"): MessageImprint
  • defaultValues(memberName: "serialNumber"): Integer
  • defaultValues(memberName: "genTime"): Date
  • defaultValues(memberName: "accuracy"): Accuracy
  • defaultValues(memberName: "ordering"): boolean
  • defaultValues(memberName: "nonce"): Integer
  • defaultValues(memberName: "tsa"): GeneralName
  • defaultValues(memberName: "extensions"): 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

    TSTInfo ::= SEQUENCE  {
      version                      INTEGER  { v1(1) },
      policy                       TSAPolicyId,
      messageImprint               MessageImprint,
      serialNumber                 INTEGER,
      genTime                      GeneralizedTime,
      accuracy                     Accuracy                 OPTIONAL,
      ordering                     BOOLEAN             DEFAULT FALSE,
      nonce                        INTEGER                  OPTIONAL,
      tsa                          [0] GeneralName          OPTIONAL,
      extensions                   [1] IMPLICIT Extensions  OPTIONAL  }
    

    Parameters

    Returns any

    ASN.1 schema object

Generated using TypeDoc