Class KJUR.asn1.DERUTCTime
Extends
KJUR.asn1.DERAbstractTime.
class for ASN.1 DER UTCTime
Defined in: asn1-1.0.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
KJUR.asn1.DERUTCTime(params)
class for ASN.1 DER UTCTime
As for argument 'params' for constructor, you can specify one of following properties:
|
- Fields borrowed from class KJUR.asn1.ASN1Object:
- hL, hT, hTLV, hV, isModified
| 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.DERUTCTime(params)
class for ASN.1 DER UTCTime
As for argument 'params' for constructor, you can specify one of following properties:
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.
EXAMPLES
d1 = new KJUR.asn1.DERUTCTime();
d1.setString('130430125959Z');
d2 = new KJUR.asn1.DERUTCTime({'str': '130430125959Z'});
d3 = new KJUR.asn1.DERUTCTime({'date': new Date(Date.UTC(2015, 0, 31, 0, 0, 0, 0))});
d4 = new KJUR.asn1.DERUTCTime('130430125959Z');
- Parameters:
- {Array} params
- associative array of parameters (ex. {'str': '130430235959Z'})
Method Detail
setByDate(dateObject)
set value by a Date object
o = new KJUR.asn1.DERUTCTime();
o.setByDate(new Date("2016/12/31"));
- Parameters:
- {Date} dateObject
- Date object to set ASN.1 value(V)