Time
Represents the Time structure described in RFC5280
Extends
Section titled “Extends”Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new Time(
parameters?):Time
Initializes a new instance of the Time class
Parameters
Section titled “Parameters”parameters?
Section titled “parameters?”TimeParameters = {}
Initialization parameters
Returns
Section titled “Returns”Time
Overrides
Section titled “Overrides”Properties
Section titled “Properties”type:
TimeType
0 - UTCTime; 1 - GeneralizedTime; 2 - empty value
Implementation of
Section titled “Implementation of”value:
Date
Value of the TIME class
Implementation of
Section titled “Implementation of”CLASS_NAME
Section titled “CLASS_NAME”
staticCLASS_NAME:string="Time"
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():
TimeJson
Converts the class to JSON object
Returns
Section titled “Returns”JSON object
Overrides
Section titled “Overrides”toSchema()
Section titled “toSchema()”toSchema():
UTCTime|GeneralizedTime
Converts current object to ASN.1 object and sets correct values
Returns
Section titled “Returns”UTCTime | GeneralizedTime
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”blockName()
Section titled “blockName()”
staticblockName():string
Returns block name
Returns
Section titled “Returns”string
Returns string block name
Inherited from
Section titled “Inherited from”defaultValues()
Section titled “defaultValues()”Call Signature
Section titled “Call Signature”
staticdefaultValues(memberName):TimeType
Returns default values for all class members
Parameters
Section titled “Parameters”memberName
Section titled “memberName”"type"
String name for a class member
Returns
Section titled “Returns”Default value
Overrides
Section titled “Overrides”Call Signature
Section titled “Call Signature”
staticdefaultValues(memberName):Date
Returns default values for all class members
Parameters
Section titled “Parameters”memberName
Section titled “memberName”"value"
String name for a class member
Returns
Section titled “Returns”Date
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?,optional?):any
Returns value of pre-defined ASN.1 schema for current class
Parameters
Section titled “Parameters”parameters?
Section titled “parameters?”TimeSchema = {}
Input parameters for the schema
optional?
Section titled “optional?”boolean = false
Flag that current schema should be optional
Returns
Section titled “Returns”any
ASN.1 schema object