Dart Ftp Control
KeyUsage Property
Description
Key usage attributes.
Property type
Read-only property
Syntax
Visual Basic
Public Property KeyUsage( _
   ByVal Usage As KeyUsageConstants _
) As Boolean
Parameters
Usage
ValueDescription
usageAllUsed for the KeyUsageSelect property, selects all Certificates in the Store.
usageCertSignCertificate can be used for Certificate Signing.
usageClientAuthenticationCertificate can be used for Client Authentication.
usageCodeSigningCertificate can be used for Code Signing.
usageCrlSignCertificate can be used for Encipherment.
usageDataEnciphermentCertificate can be used for Data Encipherment.
usageDigitalSignatureCertificate can be used for Digital Signatures.
usageEmailProtectionCertificate can be used for Email Protection.
usageIPSecEndSystemCertificate can be used for IPSec End System.
usageIPSecTunnelCertificate can be used for IPSec Tunneling.
usageIPSecUserCertificate can be used for IPSec Users.
usageKeyAgreementCertificate can be used for Key Agreement.
usageKeyEnciphermentCertificate can be used for Key Encipherment.
usageNoneCertificate has no usage flag.
usageNonRepudiationCertificate can be used prevent Repudiation.
usageOfflineCrlSignCertificate can be used for CRL Signing.
usageServerAuthenticationCertificate can be used for Server Authentication.
usageTimeStampSigningCertificate can be used for Time Stamp signing.
Example
Private Function IsUsedForServerAuth(Certificate As Certificate) As Boolean
	If Certificate.KeyUsage(usageServerAuthentication) Then
		IsUsedForServerAuth = True
	Else
		IsUsedForServerAuth = False
	End If
End Function
See Also

Certificate Object  | Certificate Members


PowerTCP FTP for ActiveX Documentation Version 2.2
© 2018 Dart Communications. All Rights Reserved.
Send comments on this topic