Class KJUR.asn1.tsp.TSTInfo
Extends
KJUR.asn1.ASN1Object.
class for TSP TSTInfo ASN.1 object
Defined in: asn1tsp-1.0.js.
Constructor Attributes | Constructor Name and Description |
---|---|
KJUR.asn1.tsp.TSTInfo(params)
class for TSP TSTInfo ASN.1 object
This class represents TSTInfo ASN.1 structure.
|
- 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.tsp.TSTInfo(params)
class for TSP TSTInfo ASN.1 object
This class represents TSTInfo ASN.1 structure.
TSTInfo ::= SEQUENCE { version INTEGER { v1(1) }, policy TSAPolicyId, messageImprint MessageImprint, serialNumber INTEGER, -- up to 160bit genTime GeneralizedTime, accuracy Accuracy OPTIONAL, ordering BOOLEAN DEFAULT FALSE, nonce INTEGER OPTIONAL, tsa [0] GeneralName OPTIONAL, extensions [1] IMPLICIT Extensions OPTIONAL }For "params" arguent, following properties are accepted:
- {Array}tsa - KJUR.asn1.x509.X500Name parameter for tsa field even though tsa field is GeneralName.
o = new KJUR.asn1.tsp.TSTInfo({ policy: '1.2.3.4.5', messageImprint: {alg: 'sha256', hash: '1abc...'}, serial: {int: 3}, genTime: {millis: true}, // OPTION accuracy: {micros: 500}, // OPTION ordering: true, // OPITON nonce: {hex: '52fab1...'}, // OPTION tsa: {str: '/C=US/O=TSA1'} // OPITON });
- Parameters:
- {Array} params
- JSON object for TSTInfo parameters
- Since:
- jsrsasign 4.6.0 asn1tsp 1.0.0