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
Method Summary
Method Attributes Method Name and Description
<static>  
KJUR.asn1.DERUTCTime.setByDate(dateObject)
set value by a Date object
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')
  • hex - specify initial ASN.1 value(V) by a hexadecimal string
  • date - specify Date object.
NOTE: 'params' can be omitted.

EXAMPLES

var d1 = new KJUR.asn1.DERUTCTime();
d1.setString('130430125959Z');

var d2 = new KJUR.asn1.DERUTCTime({'str': '130430125959Z'});
var d3 = new KJUR.asn1.DERUTCTime({'date': new Date(Date.UTC(2015, 0, 31, 0, 0, 0, 0))});
var d4 = new KJUR.asn1.DERUTCTime('130430125959Z');
Parameters:
{Array} params
associative array of parameters (ex. {'str': '130430235959Z'})
Method Detail
<static> KJUR.asn1.DERUTCTime.setByDate(dateObject)
set value by a Date object
Parameters:
{Date} dateObject
Date object to set ASN.1 value(V)

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