LEADTOOLS Medical (Leadtools.Dicom assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
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 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

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: 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