Discuss this help topic in SecureBlackbox Forum

TElCustomCertStorage.FindByHash

TElCustomCertStorage     See also     


Filter: C#  VB.NET  Pascal  C++  PHP  Java  


Checks whether certificate with a specified hash is present in the storage.

Declaration

[C#]
    not available

[VB.NET]
    not available

[Pascal]
    function FindByHash(Digest : TMessageDigest160) : integer;
    function FindByHash(Digest : TMessageDigest128) : integer;

[C++]
    int32_t FindByHash(const TMessageDigest160 &Digest);
    int32_t FindByHash(const TMessageDigest128 &Digest);

[PHP]
    integer FindByHash(TMessageDigest160 $Digest)
    integer FindByHash(TMessageDigest128 $Digest)

[Java]
    not available

Parameters

  • Digest - Digest of the certificate obtained by GetHashMD5 or GetHashSHA1 routines

Return value

    Index of certificate with specified hash if such certificate is present in storage.
    -1 if there is no such certificate.

Description

    Use this method to check whether certificate with specified hash is present in the storage. If the certificate is present, this function returns its index in the list. Otherwise -1 is returned.

See also:     IsPresent    

Discuss this help topic in SecureBlackbox Forum