Exemplo n.º 1
0
 public byte[] Export(X509ContentType contentType, String password)
 {
     using (IStorePal storePal = StorePal.LinkFromCertificateCollection(this))
     {
         return(storePal.Export(contentType, password));
     }
 }
Exemplo n.º 2
0
 public byte[]? Export(X509ContentType contentType, string?password)
 {
     using (var safePasswordHandle = new SafePasswordHandle(password))
         using (IExportPal storePal = StorePal.LinkFromCertificateCollection(this))
         {
             return(storePal.Export(contentType, safePasswordHandle));
         }
 }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
 private FindPal(X509Certificate2Collection findFrom, X509Certificate2Collection copyTo, bool validOnly)
 {
     _storePal  = (StorePal)StorePal.LinkFromCertificateCollection(findFrom);
     _copyTo    = copyTo;
     _validOnly = validOnly;
 }