Class Index | File Index

Classes


Class KJUR.asn1.DERUTCTime


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

Class Summary
Constructor Attributes Constructor Name and Description
 
class for ASN.1 DER UTCTime
As for argument 'params' for constructor, you can specify one of following properties:
  • str - specify initial ASN.1 value(V) by a string (ex.
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
Class Detail
KJUR.asn1.DERUTCTime(params)
class for ASN.1 DER UTCTime
As for argument 'params' for constructor, you can specify one of following properties:
  • str - specify initial ASN.1 value(V) by a string (ex.'130430235959Z')
  • 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 jsrsasign 10.4.1 asn1 1.0.22.

EXAMPLES

new DERUTCTime("20151231235959Z")
new DERUTCTime("20151231235959.123Z")
new DERUTCTime(new Date())
new DERUTCTime(new Date(Date.UTC(2015,11,31,23,59,59,123)))
new DERUTCTime({str: "20151231235959.123Z"})
new DERUTCTime({date: new Date()})
new DERUTCTime({date: new Date(), millis: true})
new DERUTCTime({millis: true})
Parameters:
{Array} params
associative array of parameters (ex. {'str': '130430235959Z'})
See:
KJUR.asn1.DERGeneralizedTime
KJUR.asn1.x509.Time

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