Class KJUR.asn1.x509.Time
Extends
KJUR.asn1.ASN1Object.
Time ASN.1 structure class
Defined in: asn1x509-1.0.js.
Constructor Attributes | Constructor Name and Description |
---|---|
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 } |
- 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
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'})