Example #1
0
        Certificate ApplyGetOptions(Certificate cert, CertificateGetOptions options)
        {
            if (options == null)
            {
                options = CertificateGetOptions.Default;
            }

            return(options.ApplyTo(cert));
        }
Example #2
0
        Anchor ApplyGetOptions(Anchor anchor, CertificateGetOptions options)
        {
            if (options == null)
            {
                options = CertificateGetOptions.Default;
            }

            return(options.ApplyTo(anchor));
        }
Example #3
0
 public Certificate[] GetCertificates(long[] certificateIDs, CertificateGetOptions options)
 {
     try
     {
         return(this.ApplyGetOptions(Store.Certificates.Get(certificateIDs), options));
     }
     catch (Exception ex)
     {
         throw CreateFault("GetCertificates", ex);
     }
 }
Example #4
0
 public Certificate GetCertificate(string owner, string thumbprint, CertificateGetOptions options)
 {
     try
     {
         return(this.ApplyGetOptions(Store.Certificates.Get(owner, thumbprint), options));
     }
     catch (Exception ex)
     {
         throw CreateFault("GetCertificate", ex);
     }
 }
Example #5
0
 public Anchor[] GetAnchors(long[] anchorIDs, CertificateGetOptions options)
 {
     try
     {
         return(this.ApplyGetOptions(Store.Anchors.Get(anchorIDs), options));
     }
     catch (Exception ex)
     {
         throw CreateFault("GetAnchors", ex);
     }
 }
Example #6
0
 public Certificate GetCertificate(string owner, string thumbprint, CertificateGetOptions options)
 {
     try
     {
         return this.ApplyGetOptions(Store.Certificates.Get(owner, thumbprint), options);
     }
     catch (Exception ex)
     {
         throw CreateFault("GetCertificate", ex);
     }
 }
Example #7
0
 public Anchor[] EnumerateAnchors(long lastAnchorID, int maxResults, CertificateGetOptions options)
 {
     try
     {
         return(this.ApplyGetOptions(Store.Anchors.Get(lastAnchorID, maxResults), options));
     }
     catch (Exception ex)
     {
         throw CreateFault("EnumerateAnchors", ex);
     }
 }
Example #8
0
 public Anchor[] GetAnchorsForOwner(string owner, CertificateGetOptions options)
 {
     try
     {
         return(this.ApplyGetOptions(Store.Anchors.Get(owner), options));
     }
     catch (Exception ex)
     {
         throw CreateFault("GetAnchorsForOwner", ex);
     }
 }
Example #9
0
 public Certificate[] GetCertificates(long[] certificateIDs, CertificateGetOptions options)
 {
     try
     {
         return this.ApplyGetOptions(Store.Certificates.Get(certificateIDs), options);
     }
     catch (Exception ex)
     {
         throw CreateFault("GetCertificates", ex);
     }
 }
Example #10
0
 public Anchor[] GetOutgoingAnchors(string owner, CertificateGetOptions options)
 {
     try
     {
         options = options ?? CertificateGetOptions.Default;
         return(this.ApplyGetOptions(Store.Anchors.GetOutgoing(owner, options.Status), options));
     }
     catch (Exception ex)
     {
         throw CreateFault("GetOutgoingAnchors", ex);
     }
 }
Example #11
0
 public Certificate[] GetCertificatesForOwner(string owner, CertificateGetOptions options)
 {
     try
     {
         options = options ?? CertificateGetOptions.Default;
         return this.ApplyGetOptions(Store.Certificates.Get(owner, options.Status), options);
     }
     catch (Exception ex)
     {
         throw CreateFault("GetCertificatesForOwner", ex);
     }
 }
Example #12
0
 public Certificate[] GetCertificatesForOwner(string owner, CertificateGetOptions options)
 {
     try
     {
         options = options ?? CertificateGetOptions.Default;
         return(this.ApplyGetOptions(Store.Certificates.Get(owner, options.Status), options));
     }
     catch (Exception ex)
     {
         throw CreateFault("GetCertificatesForOwner", ex);
     }
 }
Example #13
0
        Anchor[] ApplyGetOptions(Anchor[] anchors, CertificateGetOptions options)
        {
            if (anchors == null)
            {
                return(null);
            }

            return((from anchor in
                    (from anchor in anchors
                     select ApplyGetOptions(anchor, options)
                    )
                    where anchor != null
                    select anchor).ToArray());
        }
Example #14
0
        Certificate[] ApplyGetOptions(Certificate[] certs, CertificateGetOptions options)
        {
            if (certs == null)
            {
                return(null);
            }

            return((from cert in (from cert in certs
                                  where cert != null
                                  select ApplyGetOptions(cert, options)
                                  )
                    where cert != null
                    select cert).ToArray());
        }
Example #15
0
 public Anchor[] GetAnchors(long[] anchorIDs, CertificateGetOptions options)
 {
     try
     {
         return this.ApplyGetOptions(Store.Anchors.Get(anchorIDs), options);
     }
     catch(Exception ex)
     {
         throw CreateFault("GetAnchors", ex);
     }
 }
Example #16
0
        Anchor ApplyGetOptions(Anchor anchor, CertificateGetOptions options)
        {
            if (options == null)
            {
                options = CertificateGetOptions.Default;
            }

            return options.ApplyTo(anchor);
        }
Example #17
0
        Anchor[] ApplyGetOptions(Anchor[] anchors, CertificateGetOptions options)
        {
            if (anchors == null)
            {
                return null;
            }

            return (from anchor in
                        (from anchor in anchors
                         select ApplyGetOptions(anchor, options)
                        )
                    where anchor != null
                    select anchor).ToArray();
        }
Example #18
0
 Certificate ApplyGetOptions(Certificate cert, CertificateGetOptions options)
 {
     if (options == null)
     {
         options = CertificateGetOptions.Default;
     }
     
     return options.ApplyTo(cert);
 }
Example #19
0
 Certificate[] ApplyGetOptions(Certificate[] certs, CertificateGetOptions options)
 {
     if (certs == null)
     {
         return null;
     }
     
     return (from cert in (from cert in certs
                           where cert != null
                           select ApplyGetOptions(cert, options)
                          )
             where cert != null
             select cert).ToArray();
 }
Example #20
0
 public Anchor[] EnumerateAnchors(long lastAnchorID, int maxResults, CertificateGetOptions options)
 {
     try
     {
         return this.ApplyGetOptions(Store.Anchors.Get(lastAnchorID, maxResults), options);
     }
     catch (Exception ex)
     {
         throw CreateFault("EnumerateAnchors", ex);
     }
 }
Example #21
0
 public Anchor[] GetOutgoingAnchors(string owner, CertificateGetOptions options)
 {
     try
     {
         options = options ?? CertificateGetOptions.Default;
         return this.ApplyGetOptions(Store.Anchors.GetOutgoing(owner, options.Status), options);
     }
     catch (Exception ex)
     {
         throw CreateFault("GetOutgoingAnchors", ex);
     }
 }
Example #22
0
 public Anchor[] GetAnchorsForOwner(string owner, CertificateGetOptions options)
 {
     try
     {
         return this.ApplyGetOptions(Store.Anchors.Get(owner), options);
     }
     catch (Exception ex)
     {
         throw CreateFault("GetAnchorsForOwner", ex);
     }
 }
Example #23
0
 public Certificate[] EnumerateCertificates(long lastCertificateID, int maxResults, CertificateGetOptions options)
 {
     try
     {
         IEnumerable<Certificate> certs = Store.Certificates.Get(lastCertificateID, maxResults);
         return this.ApplyGetOptions(certs.ToArray(), options);
     }
     catch (Exception ex)
     {
         throw CreateFault("EnumerateCertificates", ex);
     }
 }
Example #24
0
 public Certificate[] EnumerateCertificates(long lastCertificateID, int maxResults, CertificateGetOptions options)
 {
     try
     {
         IEnumerable <Certificate> certs = Store.Certificates.Get(lastCertificateID, maxResults);
         return(this.ApplyGetOptions(certs.ToArray(), options));
     }
     catch (Exception ex)
     {
         throw CreateFault("EnumerateCertificates", ex);
     }
 }