Cms.ReadEnvDataToString Method
Read and decrypt a CMS enveloped-data object to a string.
Syntax
[C#]
public static string ReadEnvDataToString(
string inputFile,
string x509File,
string privateKey
)
[VB.NET]
Public Shared Function ReadEnvDataToString ( _
inputFile As String, _
x509File As String, _
privateKey As String _
) As String
Parameters
- inputFile
- Name of file containing CMS enveloped-data object (binary or base64-encoded) or the data as a base64 or PEM string.
- x509File
- (optional) filename of the recipient's X.509 certificate
- privateKey
- Internal representation of private key.
Return Value
Decrypted content in a string or empty string on error.
Remarks
Use this only when the decrypted text is known to be plain ASCII text, otherwise use ReadEnvDataToBytes.
See Also
VB6/C equivalent: CMS_ReadEnvDataToString
[Contents] [Index]