Mentalis.org Security Library documentation

CertificateStore.FindCertificateByHash Method (Byte[], HashType)

Finds a certificate with a matching hash.

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

Parameters

hash
The hash to search for.
hashType
One of the HashType values.

Return Value

The Certificate with the matching 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