Leadtools.Dicom Requires Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
OnPrivateKeyPassword Method
See Also 
Leadtools.Dicom Namespace > DicomNet Class : OnPrivateKeyPassword Method



encryption
true if the password is being used for encryption; false if the password is being used for decryption.
encryption
true if the password is being used for encryption; false if the password is being used for decryption.
This method is called by DicomNet.SetTlsClientCertificate whenever the private key file is password-encrypted in order to obtain the password.

Syntax

Visual Basic (Declaration) 
Protected Overridable Function OnPrivateKeyPassword( _
   ByVal encryption As Boolean _
) As String
Visual Basic (Usage)Copy Code
Dim instance As DicomNet
Dim encryption As Boolean
Dim value As String
 
value = instance.OnPrivateKeyPassword(encryption)
C# 
protected virtual string OnPrivateKeyPassword( 
   bool encryption
)
C++/CLI 
protected:
virtual String^ OnPrivateKeyPassword( 
   bool encryption
) 

Parameters

encryption
true if the password is being used for encryption; false if the password is being used for decryption.

Return Value

The password to use for the password-encrypted private key file.

Example

For an example, refer to SetTlsCipherSuiteByIndex.

Remarks

A call to this method may be generated after a call to DicomNet.SetTlsClientCertificate with a private key file that is password-encrypted, in order to obtain the password.

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also

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