CreateCertificateStore() private method

private CreateCertificateStore ( string type, Asn1Set certSet ) : IX509Store
type string
certSet Org.BouncyCastle.Asn1.Asn1Set
return IX509Store
示例#1
0
 public IX509Store GetCertificates(string type)
 {
     if (certificateStore == null)
     {
         certificateStore = Helper.CreateCertificateStore(type, signedData.Certificates);
     }
     return(certificateStore);
 }
示例#2
0
 public IX509Store GetCertificates(string type)
 {
     if (_certificateStore == null)
     {
         PopulateCertCrlSets();
         _certificateStore = Helper.CreateCertificateStore(type, _certSet);
     }
     return(_certificateStore);
 }
示例#3
0
        /**
         * return a Store containing the public key certificates, if any, contained
         * in this message.
         *
         * @param type type of store to create
         * @return a store of public key certificates
         * @exception NoSuchStoreException if the store type isn't available.
         * @exception CmsException if a general exception prevents creation of the X509Store
         */
        public IStore <X509Certificate> GetCertificates()
        {
            if (certificateStore == null)
            {
                certificateStore = Helper.CreateCertificateStore(signedData.Certificates);
            }

            return(certificateStore);
        }
示例#4
0
        /**
         * return a X509Store containing the public key certificates, if any, contained
         * in this message.
         *
         * @param type type of store to create
         * @return a store of public key certificates
         * @exception NoSuchStoreException if the store type isn't available.
         * @exception CmsException if a general exception prevents creation of the X509Store
         */
        public IStore <X509Certificate> GetCertificates()
        {
            if (_certificateStore == null)
            {
                PopulateCertCrlSets();

                _certificateStore = Helper.CreateCertificateStore(_certSet);
            }

            return(_certificateStore);
        }