Class Index | File Index

Classes


Class KJUR.asn1.tsp.TSPUtil

TSP utilities class
Defined in: asn1tsp-1.0.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
TSP utiliteis class
Method Summary
Method Attributes Method Name and Description
<static>  
KJUR.asn1.tsp.TSPUtil.newTimeStampToken(param)
generate TimeStampToken ASN.1 object specified by JSON parameters
<static>  
KJUR.asn1.tsp.TSPUtil.parseMessageImprint(hexadecimal)
parse hexadecimal string of MessageImprint This method parses a hexadecimal string of MessageImprint and returns parsed their fields:
<static>  
KJUR.asn1.tsp.TSPUtil.parseTimeStampReq(hexadecimal)
parse hexadecimal string of TimeStampReq This method parses a hexadecimal string of TimeStampReq and returns parsed their fields:
Class Detail
KJUR.asn1.tsp.TSPUtil()
TSP utiliteis class
Method Detail
<static> {KJUR.asn1.cms.SignedData} KJUR.asn1.tsp.TSPUtil.newTimeStampToken(param)
generate TimeStampToken ASN.1 object specified by JSON parameters

					
					
					
						
							
Parameters:
{Array} param
JSON parameter to generate TimeStampToken
Returns:
{KJUR.asn1.cms.SignedData} object just generated

<static> {Array} KJUR.asn1.tsp.TSPUtil.parseMessageImprint(hexadecimal)
parse hexadecimal string of MessageImprint This method parses a hexadecimal string of MessageImprint and returns parsed their fields:
var json = KJUR.asn1.tsp.TSPUtil.parseMessageImprint("302602...");
// resulted DUMP of above 'json':
{hashAlg: 'sha256',          // MessageImprint hashAlg
 hashValue: 'a1a2a3a4...'}   // MessageImprint hashValue
Parameters:
{String} hexadecimal
string of MessageImprint
Returns:
{Array} JSON object of parsed parameters

<static> {Array} KJUR.asn1.tsp.TSPUtil.parseTimeStampReq(hexadecimal)
parse hexadecimal string of TimeStampReq This method parses a hexadecimal string of TimeStampReq and returns parsed their fields:
var json = KJUR.asn1.tsp.TSPUtil.parseTimeStampReq("302602...");
// resulted DUMP of above 'json':
{mi: {hashAlg: 'sha256',          // MessageImprint hashAlg
      hashValue: 'a1a2a3a4...'},  // MessageImprint hashValue
 policy: '1.2.3.4.5',             // tsaPolicy (OPTION)
 nonce: '9abcf318...',            // nonce (OPTION)
 certreq: true}                   // certReq (OPTION)
Parameters:
{String} hexadecimal
string of TimeStampReq
Returns:
{Array} JSON object of parsed parameters

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