Class Index | File Index

Classes


Class KJUR.asn1.x509.Time


Extends KJUR.asn1.ASN1Object.
Time ASN.1 structure class
Defined in: asn1x509-1.0.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Time ASN.1 structure class
This class represents Time ASN.1 structure defined in RFC 5280
Time ::= CHOICE {
     utcTime        UTCTime,
     generalTime    GeneralizedTime }
Fields borrowed from class KJUR.asn1.ASN1Object:
hL, hT, hTLV, hV, isModified, params
Methods borrowed from class KJUR.asn1.ASN1Object:
getEncodedHex, getLengthHexFromValue, getValueHex, tohex
Class Detail
KJUR.asn1.x509.Time(params)
Time ASN.1 structure class
This class represents Time ASN.1 structure defined in RFC 5280
Time ::= CHOICE {
     utcTime        UTCTime,
     generalTime    GeneralizedTime }
var t1 = new KJUR.asn1.x509.Time{'str': '130508235959Z'} // UTCTime by default
var t2 = new KJUR.asn1.x509.Time{'type': 'gen',  'str': '20130508235959Z'} // GeneralizedTime
Parameters:
{Array} params
associative array of parameters (ex. {'str': '130508235959Z'})
See:
KJUR.asn1.DERUTCTime
KJUR.asn1.DERGeneralizedTime

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