|
Search for certificates in the storage To find one or more certificate in the storage by some criteria, you need to use an instance of TElCertificateLookup class and FindFirst() and FindNext() methods of TElCustomCertStorage option. First, create an instance of TElCertificateLookup class. Next, you need to setup search criteria. To do this
After you setup the criteria, you need to setup global lookup options using Options property of TElCertificateLookup object. Finally, do the actual search by calling FindFirst() method of TElX509Certificate to locate first certificate, that matches the given criteria. If the certificate is located, FindFirst() method returns the index of the certificate. If the certificate could not be found, FindFirst() method returns -1. Use FindNext() method if needed to locate the consequent certificates that match the criteria. After you get the index of the certificate, use the Certificates[] property of of TElCustomCertStorage class to access the certificate itself. |

