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
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   }
Fields borrowed from class KJUR.asn1.ASN1Object:
hL, hT, hTLV, hV, isModified
Class Detail
KJUR.asn1.tsp.TSTInfo(params)
class for TSP TSTInfo ASN.1 object
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   }
o = new KJUR.asn1.tsp.TSTInfo({
    policy:    '1.2.3.4.5',
    messageImprint: {hashAlg: 'sha256', hashMsgHex: '1abc...'},
    genTime:   {withMillis: true},     // OPTION
    accuracy:  {micros: 500},          // OPTION
    ordering:  true,                   // OPITON
    nonce:     {hex: '52fab1...'},     // OPTION
    tsa:       {str: '/C=US/O=TSA1'}   // OPITON
});
Parameters:
{Array} params
associative array of parameters
Since:
jsrsasign 4.6.0 asn1tsp 1.0.0

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