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 (DEPRECATED)
<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 (DEPRECATED)

					
					
					
						
							
Parameters:
{Array} param
JSON parameter to generate TimeStampToken
Deprecated:
since jsrsasign 10.0.0 asn1tsp 2.0.0. Please use TimeStampToken class
Returns:
{KJUR.asn1.cms.SignedData} object just generated
See:
KJUR.asn1.tsp.TimeStampToken

<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:
KJUR.asn1.tsp.TSPUtil.parseMessageImprint("302602...") →
{ alg:  'sha256', hash: 'a1a2a3a4...'}
Parameters:
{String} hexadecimal
string of MessageImprint
Deprecated:
since jsrsasign 10.5.18 asn1tsp 2.0.6. Please use TSPParser.getMessageImprint instead.
Returns:
{Array} JSON object of parsed parameters
See:
KJUR.asn1.tsp.TSPParser#getMessageImprint

<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':
{
 messageImprint: {
      alg: 'sha256',          // MessageImprint hashAlg
      hash: '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
Deprecated:
since jsrsasign 10.5.18 asn1tsp 2.0.6. Please use TSPParser.getTimeStampReq instead.
Returns:
{Array} JSON object of parsed parameters
See:
KJUR.asn1.tsp.TSPParser#getTimeStampReq

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