TSTInfo
Represents the TSTInfo structure described in RFC3161
Extends
Section titled “Extends”Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new TSTInfo(
parameters?):TSTInfo
Initializes a new instance of the TSTInfo class
Parameters
Section titled “Parameters”parameters?
Section titled “parameters?”TSTInfoParameters = {}
Initialization parameters
Returns
Section titled “Returns”TSTInfo
Overrides
Section titled “Overrides”Properties
Section titled “Properties”accuracy?
Section titled “accuracy?”
optionalaccuracy?:Accuracy
Represents the time deviation around the UTC time contained in GeneralizedTime
Implementation of
Section titled “Implementation of”extensions?
Section titled “extensions?”
optionalextensions?:Extension[]
Additional information in the future. Extensions is defined in RFC2459
Implementation of
Section titled “Implementation of”genTime
Section titled “genTime”genTime:
Date
Time at which the time-stamp token has been created by the TSA
Implementation of
Section titled “Implementation of”messageImprint
Section titled “messageImprint”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.
Implementation of
Section titled “Implementation of”nonce?
Section titled “nonce?”
optionalnonce?: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.
Implementation of
Section titled “Implementation of”ordering?
Section titled “ordering?”
optionalordering?: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.
Implementation of
Section titled “Implementation of”policy
Section titled “policy”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
Implementation of
Section titled “Implementation of”serialNumber
Section titled “serialNumber”serialNumber:
Integer
Integer assigned by the TSA to each TimeStampToken.
It MUST be unique for each TimeStampToken issued by a given TSA.
Implementation of
Section titled “Implementation of”
optionaltsa?:GeneralName
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.
Implementation of
Section titled “Implementation of”version
Section titled “version”version:
number
Version of the time-stamp token.
Conforming time-stamping servers MUST be able to provide version 1 time-stamp tokens.
Implementation of
Section titled “Implementation of”CLASS_NAME
Section titled “CLASS_NAME”
staticCLASS_NAME:string="TSTInfo"
Name of the class
Overrides
Section titled “Overrides”Accessors
Section titled “Accessors”className
Section titled “className”Get Signature
Section titled “Get Signature”get className():
string
Returns
Section titled “Returns”string
Inherited from
Section titled “Inherited from”Methods
Section titled “Methods”fromSchema()
Section titled “fromSchema()”fromSchema(
schema):void
Converts parsed ASN.1 object into current class
Parameters
Section titled “Parameters”schema
Section titled “schema”any
ASN.1 schema
Returns
Section titled “Returns”void
Overrides
Section titled “Overrides”toJSON()
Section titled “toJSON()”toJSON():
TSTInfoJson
Converts the class to JSON object
Returns
Section titled “Returns”JSON object
Overrides
Section titled “Overrides”toSchema()
Section titled “toSchema()”toSchema():
Sequence
Converts current object to ASN.1 object and sets correct values
Returns
Section titled “Returns”Sequence
ASN.1 object
Overrides
Section titled “Overrides”toString()
Section titled “toString()”toString(
encoding?):string
Parameters
Section titled “Parameters”encoding?
Section titled “encoding?”"hex" | "base64" | "base64url" = "hex"
Returns
Section titled “Returns”string
Inherited from
Section titled “Inherited from”verify()
Section titled “verify()”verify(
params,crypto?):Promise<boolean>
Verify current TST Info value
Parameters
Section titled “Parameters”params
Section titled “params”Input parameters
crypto?
Section titled “crypto?”ICryptoEngine = ...
Crypto engine
Returns
Section titled “Returns”Promise<boolean>
blockName()
Section titled “blockName()”
staticblockName():string
Returns block name
Returns
Section titled “Returns”string
Returns string block name
Inherited from
Section titled “Inherited from”compareWithDefault()
Section titled “compareWithDefault()”
staticcompareWithDefault(memberName,memberValue):boolean
Compare values with default values for all class members
Parameters
Section titled “Parameters”memberName
Section titled “memberName”string
String name for a class member
memberValue
Section titled “memberValue”any
Value to compare with default value
Returns
Section titled “Returns”boolean
defaultValues()
Section titled “defaultValues()”Call Signature
Section titled “Call Signature”
staticdefaultValues(memberName):number
Returns default values for all class members
Parameters
Section titled “Parameters”memberName
Section titled “memberName”"version"
String name for a class member
Returns
Section titled “Returns”number
Default value
Overrides
Section titled “Overrides”Call Signature
Section titled “Call Signature”
staticdefaultValues(memberName):string
Returns default values for all class members
Parameters
Section titled “Parameters”memberName
Section titled “memberName”"policy"
String name for a class member
Returns
Section titled “Returns”string
Default value
Overrides
Section titled “Overrides”PkiObject.defaultValues
Call Signature
Section titled “Call Signature”
staticdefaultValues(memberName):MessageImprint
Returns default values for all class members
Parameters
Section titled “Parameters”memberName
Section titled “memberName”"messageImprint"
String name for a class member
Returns
Section titled “Returns”Default value
Overrides
Section titled “Overrides”PkiObject.defaultValues
Call Signature
Section titled “Call Signature”
staticdefaultValues(memberName):Integer
Returns default values for all class members
Parameters
Section titled “Parameters”memberName
Section titled “memberName”"serialNumber"
String name for a class member
Returns
Section titled “Returns”Integer
Default value
Overrides
Section titled “Overrides”PkiObject.defaultValues
Call Signature
Section titled “Call Signature”
staticdefaultValues(memberName):Date
Returns default values for all class members
Parameters
Section titled “Parameters”memberName
Section titled “memberName”"genTime"
String name for a class member
Returns
Section titled “Returns”Date
Default value
Overrides
Section titled “Overrides”PkiObject.defaultValues
Call Signature
Section titled “Call Signature”
staticdefaultValues(memberName):Accuracy
Returns default values for all class members
Parameters
Section titled “Parameters”memberName
Section titled “memberName”"accuracy"
String name for a class member
Returns
Section titled “Returns”Default value
Overrides
Section titled “Overrides”PkiObject.defaultValues
Call Signature
Section titled “Call Signature”
staticdefaultValues(memberName):boolean
Returns default values for all class members
Parameters
Section titled “Parameters”memberName
Section titled “memberName”"ordering"
String name for a class member
Returns
Section titled “Returns”boolean
Default value
Overrides
Section titled “Overrides”PkiObject.defaultValues
Call Signature
Section titled “Call Signature”
staticdefaultValues(memberName):Integer
Returns default values for all class members
Parameters
Section titled “Parameters”memberName
Section titled “memberName”"nonce"
String name for a class member
Returns
Section titled “Returns”Integer
Default value
Overrides
Section titled “Overrides”PkiObject.defaultValues
Call Signature
Section titled “Call Signature”
staticdefaultValues(memberName):GeneralName
Returns default values for all class members
Parameters
Section titled “Parameters”memberName
Section titled “memberName”"tsa"
String name for a class member
Returns
Section titled “Returns”Default value
Overrides
Section titled “Overrides”PkiObject.defaultValues
Call Signature
Section titled “Call Signature”
staticdefaultValues(memberName):Extension[]
Returns default values for all class members
Parameters
Section titled “Parameters”memberName
Section titled “memberName”"extensions"
String name for a class member
Returns
Section titled “Returns”Default value
Overrides
Section titled “Overrides”PkiObject.defaultValues
fromBER()
Section titled “fromBER()”
staticfromBER<T>(this,raw):T
Creates PKI object from the raw data
Type Parameters
Section titled “Type Parameters”T extends PkiObject
Parameters
Section titled “Parameters”PkiObjectConstructor<T>
BufferSource
ASN.1 encoded raw data
Returns
Section titled “Returns”T
Initialized and filled current class object
Inherited from
Section titled “Inherited from”schema()
Section titled “schema()”
staticschema(parameters?):any
Returns value of pre-defined ASN.1 schema for current class
Parameters
Section titled “Parameters”parameters?
Section titled “parameters?”SchemaParameters<{ accuracy?: AccuracySchema; extension?: ExtensionSchema; extensions?: string; genTime?: string; messageImprint?: MessageImprintSchema; nonce?: string; ordering?: string; policy?: string; serialNumber?: string; tsa?: GeneralNameSchema; version?: string; }> = {}
Input parameters for the schema
Returns
Section titled “Returns”any
ASN.1 schema object