function CertificateByName(const CertName: string): TScCertificate;

 

Description

Call CertificateByName to determine if a specified certificate is referenced in the Certificates list. CertName is the name of the certificate for which to search. If CertificateByName finds a certificate with a matching name, it returns the TScCertificate object for the specified certificate. Otherwise it raises an exception.

 

Note:

CertificateByName differs from the FindCertificate method only when the named certificate is not in the list. When the certificate is not found, FindCertificate returns nil, while CertificateByName raises an exception.

 

See also

FindCertificate

 

SecureBridge Components, Copyright © 2007-2021 Devart. All Rights Reserved. Provide Feedback Visit Forum Request Support