←Select platform

SaveCertificate Method

Summary

Saves the signer's digital certificate associated with the specified Digital Signature to a file.

Syntax

C#
VB
WinRT C#
C++
public void SaveCertificate( 
   DicomElement signatureItem, 
   string fileName, 
   DicomCertificateFormat format 
) 
Public Sub SaveCertificate( _ 
   ByVal signatureItem As Leadtools.Dicom.DicomElement, _ 
   ByVal fileName As String, _ 
   ByVal format As Leadtools.Dicom.DicomCertificateFormat _ 
)  
 function Leadtools.Dicom.DicomDataSet.SaveCertificate(  
   signatureItem , 
   fileName , 
   format  
) 

Parameters

signatureItem
The Digital Signatures Sequence Item which corresponds to the Digital Signature. This cannot be null.

fileName
Character string that contains the name of the file to which the digital certificate should be saved. If the file already exists, it will be overwritten.

format
The format in which the digital certificate should be saved.

Remarks

The Certificate of Signer (0400,0115) under the Digital Signatures Sequence Item of a Digital Signature contains the digital certificate of the entity that produced the Digital Signature. Call this method to save this digital certificate to a file. The following methods can also be used to get information about the Digital Signature:

GetSignatureUID

GetSignatureDateTime

GetSignedElementsCount

GetSignedElement

GetMacTransferSyntax

GetMacAlgorithm

Example

For an example, refer to VerifySignature.

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Dicom Assembly