CryptoSys PKI Toolkit Manual

Cms.QueryEnvData Method (String, String)

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

Syntax

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

Parameters

inputFile
file containing CMS enveloped-data object
query
Query string (case insensitive)

Return Value

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

Remarks

Valid queries are:

"version" envelopedData CMSVersion value, e.g. "0".
"countOfRecipientInfos" Number of RecipientInfos included in the data.
"contentEncryptionAlgorithm" contentEncryptionAlgorithm, e.g. "des-EDE3-CBC".
"sizeofEncryptedContent" Size (in bytes) of the EncryptedContent.
"recipientInfoVersion" recipientInfo version (riVer) value.
"keyEncryptionAlgorithm" keyEncryptionAlgorithm, e.g. "rsaEncryption".
"keyEncryptionFlags" Bit flags used for the key encryption algorithm.
"sizeofEncryptedKey" Size (in bytes) of the EncryptedKey.
"recipientIssuerName" Distinguished Name of recipient's certificate issuer.
"recipientSerialNumber" serialNumber of recipient's certificate in hex format

See Also

VB6/C equivalent: CMS_QueryEnvData

[Contents] [Index]

[HOME]   [NEXT: Cms.QueryEnvData Method (String, String, Boolean)...]

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