CryptoSys PKI Toolkit Manual

Cms.QuerySigData Method

Queries a CMS signed-data object file for selected information.

Syntax

[C#]
public static string QuerySigData(
	string inputFile,
	string query,
	bool inputIsBase64
)
[VB.NET]
Public Shared Function QuerySigData ( _
	inputFile As String, _
	query As String, _
	inputIsBase64 As Boolean _
) As String

Parameters

inputFile
file containing CMS signed-data object
query
Query string (case insensitive)
inputIsBase64
true if input is in base64 encoding; false for binary BER-encoded

Return Value

String containing the result or an empty string if not found or error.

Remarks

The user must specify the type of encoding used for the input file.

Valid queries are:

"version"signedData version (sdVer) value, e.g. "1".
"eContentType"ContentType of the EncapsulatedContentInfo, e.g. "data".
"HASeContent""1" if eContent is present; "0" if not.
"CountOfCertificates"Number of certificates included in the data.
"CountOfSignerInfos"Number of SignerInfos included in the data.
"signerInfoVersion"signerInfo version (siVer) value.
"digestAlgorithm"digestAlgorithm, e.g. "sha1".
"signatureAlgorithm"signatureAlgorithm, e.g. "rsaEncryption".
"HASsignedAttributes""1" if signedAttributes (authenticatedAttributes) are present; "0" if not.
"signingTime"Date on which the certificate validity period begins in format "2005-12-31 23:30:59"
"messageDigest"messageDigest attribute in hexadecimal format, if present

See Also

VB6/C equivalent: CMS_QuerySigData

[Contents] [Index]

[HOME]   [NEXT: Cms.ReadEnvDataToFile Method...]

Copyright © 2004-10 D.I. Management Services Pty Ltd. All rights reserved.