GeneralizedTime
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new GeneralizedTime(
parameters?):GeneralizedTime
Parameters
Section titled “Parameters”parameters?
Section titled “parameters?”UTCTimeParams = {}
Returns
Section titled “Returns”GeneralizedTime
Overrides
Section titled “Overrides”Properties
Section titled “Properties”blockLength
Section titled “blockLength”blockLength:
number
Inherited from
Section titled “Inherited from”day:
number
Inherited from
Section titled “Inherited from”error:
string
Inherited from
Section titled “Inherited from”hour:
number
Inherited from
Section titled “Inherited from”idBlock
Section titled “idBlock”idBlock:
LocalIdentificationBlock
Inherited from
Section titled “Inherited from”lenBlock
Section titled “lenBlock”lenBlock:
LocalLengthBlock
Inherited from
Section titled “Inherited from”millisecond
Section titled “millisecond”millisecond:
number
minute
Section titled “minute”minute:
number
Inherited from
Section titled “Inherited from”month:
number
Inherited from
Section titled “Inherited from”name:
string
Inherited from
Section titled “Inherited from”optional
Section titled “optional”optional:
boolean
Inherited from
Section titled “Inherited from”primitiveSchema?
Section titled “primitiveSchema?”
optionalprimitiveSchema?:BaseBlock<ValueBlock,LocalBaseBlockJson>
Inherited from
Section titled “Inherited from”second
Section titled “second”second:
number
Inherited from
Section titled “Inherited from”valueBeforeDecodeView
Section titled “valueBeforeDecodeView”valueBeforeDecodeView:
Uint8Array
3.0.0
Inherited from
Section titled “Inherited from”valueBlock
Section titled “valueBlock”valueBlock:
LocalSimpleStringValueBlock
Inherited from
Section titled “Inherited from”warnings
Section titled “warnings”warnings:
string[]
Inherited from
Section titled “Inherited from”year:
number
Inherited from
Section titled “Inherited from”
staticNAME:string="GeneralizedTime"
Overrides
Section titled “Overrides”Accessors
Section titled “Accessors”valueBeforeDecode
Section titled “valueBeforeDecode”Get Signature
Section titled “Get Signature”get valueBeforeDecode():
ArrayBuffer
Returns
Section titled “Returns”ArrayBuffer
Set Signature
Section titled “Set Signature”set valueBeforeDecode(
value):void
Parameters
Section titled “Parameters”ArrayBuffer
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”Methods
Section titled “Methods”fromBER()
Section titled “fromBER()”fromBER(
inputBuffer,inputOffset,inputLength,context?):number
Parameters
Section titled “Parameters”inputBuffer
Section titled “inputBuffer”ArrayBuffer | Uint8Array<ArrayBufferLike>
inputOffset
Section titled “inputOffset”number
inputLength
Section titled “inputLength”number
context?
Section titled “context?”FromBerContext
Returns
Section titled “Returns”number
Inherited from
Section titled “Inherited from”fromBuffer()
Section titled “fromBuffer()”fromBuffer(
inputBuffer):void
Function converting ArrayBuffer into ASN.1 internal string
Parameters
Section titled “Parameters”inputBuffer
Section titled “inputBuffer”ArrayBuffer | Uint8Array<ArrayBufferLike>
ASN.1 BER encoded array
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”fromDate()
Section titled “fromDate()”fromDate(
inputDate):void
Function converting “Date” object into ASN.1 internal string
Parameters
Section titled “Parameters”inputDate
Section titled “inputDate”Date
JavaScript “Date” object
Returns
Section titled “Returns”void
Overrides
Section titled “Overrides”fromString()
Section titled “fromString()”fromString(
inputString):void
Parameters
Section titled “Parameters”inputString
Section titled “inputString”string
Returns
Section titled “Returns”void
Overrides
Section titled “Overrides”getValue()
Section titled “getValue()”getValue():
string
String value
Returns
Section titled “Returns”string
3.0.0
Inherited from
Section titled “Inherited from”isEqual()
Section titled “isEqual()”isEqual(
other):other is GeneralizedTime
Determines whether two object instances are equal
Parameters
Section titled “Parameters”unknown
Object to compare with the current object
Returns
Section titled “Returns”other is GeneralizedTime
Inherited from
Section titled “Inherited from”setValue()
Section titled “setValue()”setValue(
value):void
String value
Parameters
Section titled “Parameters”string
String value
Returns
Section titled “Returns”void
3.0.0
Inherited from
Section titled “Inherited from”toBER()
Section titled “toBER()”toBER(
sizeOnly?,writer?):ArrayBuffer
Encoding of current ASN.1 block into ASN.1 encoded array (BER rules)
Parameters
Section titled “Parameters”sizeOnly?
Section titled “sizeOnly?”boolean
Flag that we need only a size of encoding, not a real array of bytes
writer?
Section titled “writer?”Returns
Section titled “Returns”ArrayBuffer
ASN.1 BER encoded array
Inherited from
Section titled “Inherited from”toBuffer()
Section titled “toBuffer()”toBuffer():
ArrayBuffer
Function converting ASN.1 internal string into ArrayBuffer
Returns
Section titled “Returns”ArrayBuffer
Inherited from
Section titled “Inherited from”toDate()
Section titled “toDate()”toDate():
Date
Converts a class object into the JavaScrip Date Object
Returns
Section titled “Returns”Date
Date object
Overrides
Section titled “Overrides”toJSON()
Section titled “toJSON()”toJSON():
GeneralizedTimeJson
Returns a JSON representation of an object
Returns
Section titled “Returns”JSON object
Overrides
Section titled “Overrides”toString()
Section titled “toString()”toString(
encoding?):string
Returns a string representation of an object.
Parameters
Section titled “Parameters”encoding?
Section titled “encoding?”DateStringEncoding = "iso"
Returns
Section titled “Returns”string
Overrides
Section titled “Overrides”blockName()
Section titled “blockName()”
staticblockName():string
Aux function, need to get a block name. Need to have it here for inheritance
Returns
Section titled “Returns”string
Returns name of the block