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
Method Summary
Method Attributes Method Name and Description
 
setByDate(dateObject)
set value by a Date object
Methods borrowed from class KJUR.asn1.DERAbstractTime:
getString, setByDateValue, setString
Methods borrowed from class KJUR.asn1.ASN1Object:
getEncodedHex, getLengthHexFromValue, getValueHex
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')
  • hex - specify initial ASN.1 value(V) by a hexadecimal string
  • date - specify Date object.
  • millis - specify flag to show milliseconds (from 1.0.6)
NOTE1: 'params' can be omitted. NOTE2: 'withMillis' property is supported from asn1 1.0.6.
Parameters:
{Array} params
associative array of parameters (ex. {'str': '20130430235959Z'})
Field Detail
{Boolean} withMillis
flag to show milliseconds or not
Method Detail
setByDate(dateObject)
set value by a Date object
When you specify UTC time, use 'Date.UTC' method like this:
o1 = new DERUTCTime(); o1.setByDate(date); date = new Date(Date.UTC(2015, 0, 31, 23, 59, 59, 0)); #2015JAN31 23:59:59
Parameters:
{Date} dateObject
Date object to set ASN.1 value(V)

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