Finds a certificate having an enhanced key extension that matches one of the keyUsage members.
Namespace: LLCryptoLib.Security.CertificatesAssembly: LLCryptoLib (in LLCryptoLib.dll) Version: 2.0.1024.0 (2.0.1024)
Syntax
Visual Basic |
---|
Public Function FindCertificateByUsage ( _
keyUsage As String(), _
previous As Certificate _
) As Certificate |
Return Value
The
Certificate that comes after
previous and that has at least one of the specified key usages -or- a null reference (
Nothing in Visual Basic) if no other valid certificate could be found.
Exceptions
Exception | Condition |
---|
System..::..ArgumentNullException | keyUsage is a null reference (Nothing in Visual Basic). |
System..::..ArgumentException | keyUsage is invalid. |
See Also