LEADTOOLS Medical (Leadtools.Dicom assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
GetMacTransferSyntax Method
See Also 
Leadtools.Dicom Namespace > DicomDataSet Class : GetMacTransferSyntax Method



signatureItem
The Digital Signatures Sequence Item that corresponds to the Digital Signature. This cannot be null.
signatureItem
The Digital Signatures Sequence Item that corresponds to the Digital Signature. This cannot be null.
Returns the Message Authentication Code (MAC) Calculation Transfer Syntax UID (0400,0010) used in the creation of the specified Digital Signature.

Syntax

Visual Basic (Declaration) 
Public Function GetMacTransferSyntax( _
   ByVal signatureItem As DicomElement _
) As String
Visual Basic (Usage)Copy Code
Dim instance As DicomDataSet
Dim signatureItem As DicomElement
Dim value As String
 
value = instance.GetMacTransferSyntax(signatureItem)
C# 
public string GetMacTransferSyntax( 
   DicomElement signatureItem
)
C++/CLI 
public:
String^ GetMacTransferSyntax( 
   DicomElement^ signatureItem
) 

Parameters

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

Return Value

The MAC Calculation Transfer Syntax UID (0400,0010) used in the creation of the specified Digital Signature. The return value can be a null reference (Nothing in Visual Basic).

Example

Remarks

The Digital Signatures Sequence Item of a Digital Signature should reference an item under the MAC Parameters Sequence associated with the Digital Signatures Sequence. The MAC Calculation Transfer Syntax UID (0400,0010) under the referenced MAC Parameters Sequence Item specifies the Transfer Syntax used in the calculation of the Message Authentication Code (MAC). The encrypted MAC is the digital signature itself. Call this method to obtain the value of this Data Element.

If the Data Set was properly encoded, the return value will be a Transfer Syntax that Explicitly includes the Value Representation (VR) and uses Little Endian encoding.

The following methods can also be used to get information about the Digital Signature:

Leadtools.Dicom.DicomDataSet.GetSignatureUID

Leadtools.Dicom.DicomDataSet.GetSignatureDateTime

GetSignedElementsCount

Leadtools.Dicom.DicomDataSet.GetSignedElement

GetMacAlgorithm

SaveCertificate

Requirements

Target Platforms: Silverlight 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)

See Also

Leadtools.Dicom requires a Medical toolkit server license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features