Leadtools.Dicom Requires Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.10.31
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.
This method is called by 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
)
Managed Extensions for 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 SetTlsClientCertificate with a private key file that is password-encrypted, in order to obtain the password.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

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