Class Index | File Index

Classes


Class KJUR.asn1.tsp.TSTInfo


Extends KJUR.asn1.ASN1Object.
class for TSP TSTInfo ASN.1 object
Defined in: asn1tsp-1.0.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
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:
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
See:
KJUR.asn1.x509.X500Name
KJUR.asn1.x509.GeneralName

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