Class Index | File Index

Classes


Class KJUR.asn1.DERGeneralizedTime


Extends KJUR.asn1.DERAbstractTime.
class for ASN.1 DER GeneralizedTime
Defined in: asn1-1.0.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
class for ASN.1 DER GeneralizedTime
As for argument 'params' for constructor, you can specify one of following properties:
  • str - specify initial ASN.1 value(V) by a string (ex.
Field Summary
Field Attributes Field Name and Description
 
flag to show milliseconds or not
Fields borrowed from class KJUR.asn1.ASN1Object:
hL, hT, hTLV, hV, isModified, params
Methods borrowed from class KJUR.asn1.DERAbstractTime:
getString, setByDate, setByDateValue, setByParam, setString
Methods borrowed from class KJUR.asn1.ASN1Object:
getEncodedHex, getLengthHexFromValue, getValueHex, tohex
Class Detail
KJUR.asn1.DERGeneralizedTime(params)
class for ASN.1 DER GeneralizedTime
As for argument 'params' for constructor, you can specify one of following properties:
  • str - specify initial ASN.1 value(V) by a string (ex.'20130430235959Z')
  • date - specify Date object.
  • millis - specify flag to show milliseconds (from 1.0.6)
NOTE1: 'params' can be omitted. NOTE2: 'millis' property is supported from asn1 1.0.6.

EXAMPLES

new DERGeneralizedTime("20151231235959Z")
new DERGeneralizedTime("20151231235959.123Z")
new DERGeneralizedTime(new Date())
new DERGeneralizedTime(new Date(Date.UTC(2015,11,31,23,59,59,123)))
new DERGeneralizedTime({str: "20151231235959.123Z"})
new DERGeneralizedTime({date: new Date()})
new DERGeneralizedTime({date: new Date(), millis: true})
new DERGeneralizedTime({millis: true})
Parameters:
{Array} params
associative array of parameters (ex. {'str': '20130430235959Z'})
See:
KJUR.asn1.DERUTCTime
KJUR.asn1.x509.Time
Field Detail
{Boolean} withMillis
flag to show milliseconds or not

© 2012-2023 Kenji Urushima, All rights reserved
Documentation generated by JsDoc Toolkit 2.4.0