'Declaration
Public Function ProtectOrUnprotectOwnCertificate( _ ByVal certificateSubId As String, _ ByVal newPrivateKeyPassword As String _ ) As Boolean
'Usage
Dim instance As EasyUAApplicationCore Dim certificateSubId As String Dim newPrivateKeyPassword As String Dim value As Boolean value = instance.ProtectOrUnprotectOwnCertificate(certificateSubId, newPrivateKeyPassword)
public bool ProtectOrUnprotectOwnCertificate( string certificateSubId, string newPrivateKeyPassword )
public: bool ProtectOrUnprotectOwnCertificate( String^ certificateSubId, String^ newPrivateKeyPassword )
Parameters
- certificateSubId
- The sub-id of the certificate. Normally an empty string.
The value of this parameter cannot be
null
(Nothing
in Visual Basic). - newPrivateKeyPassword
- Empty string to unprotected the certificate, or a non-empty password to use for protection of the certificate's private key.
The value of this parameter cannot be
null
(Nothing
in Visual Basic).
Return Value
true
when the resulting state of the certificate is protected. Returns false
otherwise.