public byte[] Export(X509ContentType contentType, String password) { using (IStorePal storePal = StorePal.LinkFromCertificateCollection(this)) { return(storePal.Export(contentType, password)); } }
public byte[]? Export(X509ContentType contentType, string?password) { using (var safePasswordHandle = new SafePasswordHandle(password)) using (IExportPal storePal = StorePal.LinkFromCertificateCollection(this)) { return(storePal.Export(contentType, safePasswordHandle)); } }
public X509Certificate2Collection Find(X509FindType findType, Object findValue, bool validOnly) { if (findValue == null) { throw new ArgumentNullException("findValue"); } X509Certificate2Collection collection = new X509Certificate2Collection(); using (IStorePal storePal = StorePal.LinkFromCertificateCollection(this)) { storePal.FindAndCopyTo(findType, findValue, validOnly, collection); } return(collection); }
private FindPal(X509Certificate2Collection findFrom, X509Certificate2Collection copyTo, bool validOnly) { _storePal = (StorePal)StorePal.LinkFromCertificateCollection(findFrom); _copyTo = copyTo; _validOnly = validOnly; }