Mentalis.org Security Library documentation

CertificateStore.FindCertificateByHash Method (Byte[])

Finds a certificate with a matching hash.

[Visual Basic]
Overloads Public Function FindCertificateByHash( _
   ByVal hash As Byte() _
) As Certificate
[C#]
public Certificate FindCertificateByHash(
   byte[] hash
);

Parameters

hash
The hash to search for.

Return Value

The Certificate with the matching default hash -or- a null reference (Nothing in Visual Basic) if no certificate with that hash could be found in the store.

Exceptions

Exception TypeCondition
ArgumentNullExceptionhash is a null reference (Nothing in Visual Basic).

See Also

CertificateStore Class | Org.Mentalis.Security.Certificates Namespace | CertificateStore.FindCertificateByHash Overload List