コード例 #1
0
        public RevocationValues(
            IEnumerable crlVals,
            IEnumerable ocspVals,
            OtherRevVals otherRevVals)
        {
            if (otherRevVals == null)
            {
                throw new ArgumentNullException("otherRevVals");
            }

            if (crlVals != null)
            {
                if (!CollectionUtilities.CheckElementsAreOfType <CertificateList>(crlVals))
                {
                    throw new ArgumentException("Must contain only 'CertificateList' objects", "crlVals");
                }

                this.crlVals = new DerSequence(
                    Asn1EncodableVector.FromEnumerable(crlVals));
            }

            if (ocspVals != null)
            {
                if (!CollectionUtilities.CheckElementsAreOfType <BasicOcspResponse>(ocspVals))
                {
                    throw new ArgumentException("Must contain only 'BasicOcspResponse' objects", "ocspVals");
                }

                this.ocspVals = new DerSequence(
                    Asn1EncodableVector.FromEnumerable(ocspVals));
            }

            this.otherRevVals = otherRevVals;
        }
コード例 #2
0
        public SignaturePolicyId(
            DerObjectIdentifier sigPolicyIdentifier,
            OtherHashAlgAndValue sigPolicyHash,
            IEnumerable sigPolicyQualifiers)
        {
            if (sigPolicyIdentifier == null)
            {
                throw new ArgumentNullException("sigPolicyIdentifier");
            }
            if (sigPolicyHash == null)
            {
                throw new ArgumentNullException("sigPolicyHash");
            }

            this.sigPolicyIdentifier = sigPolicyIdentifier;
            this.sigPolicyHash       = sigPolicyHash;

            if (sigPolicyQualifiers != null)
            {
                if (!CollectionUtilities.CheckElementsAreOfType(sigPolicyQualifiers, typeof(SigPolicyQualifierInfo)))
                {
                    throw new ArgumentException("Must contain only 'SigPolicyQualifierInfo' objects", "sigPolicyQualifiers");
                }

                this.sigPolicyQualifiers = new DerSequence(
                    Asn1EncodableVector.FromEnumerable(sigPolicyQualifiers));
            }
        }
コード例 #3
0
        public OtherSigningCertificate(
            IEnumerable certs,
            IEnumerable policies)
        {
            if (certs == null)
            {
                throw new ArgumentNullException("certs");
            }
            if (!CollectionUtilities.CheckElementsAreOfType(certs, typeof(OtherCertID)))
            {
                throw new ArgumentException("Must contain only 'OtherCertID' objects", "certs");
            }

            this.certs = new DerSequence(
                Asn1EncodableVector.FromEnumerable(certs));

            if (policies != null)
            {
                if (!CollectionUtilities.CheckElementsAreOfType(policies, typeof(PolicyInformation)))
                {
                    throw new ArgumentException("Must contain only 'PolicyInformation' objects", "policies");
                }

                this.policies = new DerSequence(
                    Asn1EncodableVector.FromEnumerable(policies));
            }
        }
コード例 #4
0
		public CompleteCertificateRefs(
			IEnumerable otherCertIDs)
		{
			if (otherCertIDs == null)
				throw new ArgumentNullException("otherCertIDs");
			if (!CollectionUtilities.CheckElementsAreOfType(otherCertIDs, typeof(OtherCertID)))
				throw new ArgumentException("Must contain only 'OtherCertID' objects", "otherCertIDs");

			this.otherCertIDs = new DerSequence(
				Asn1EncodableVector.FromEnumerable(otherCertIDs));
		}
コード例 #5
0
 public CompleteRevocationRefs(IEnumerable crlOcspRefs)
 {
     if (crlOcspRefs == null)
     {
         throw new ArgumentNullException("crlOcspRefs");
     }
     if (!CollectionUtilities.CheckElementsAreOfType(crlOcspRefs, typeof(CrlOcspRef)))
     {
         throw new ArgumentException("Must contain only 'CrlOcspRef' objects", "crlOcspRefs");
     }
     this.crlOcspRefs = new DerSequence(Asn1EncodableVector.FromEnumerable(crlOcspRefs));
 }
コード例 #6
0
 public OcspListID(IEnumerable ocspResponses)
 {
     if (ocspResponses == null)
     {
         throw new ArgumentNullException("ocspResponses");
     }
     if (!CollectionUtilities.CheckElementsAreOfType(ocspResponses, typeof(OcspResponsesID)))
     {
         throw new ArgumentException("Must contain only 'OcspResponsesID' objects", "ocspResponses");
     }
     this.ocspResponses = new DerSequence(Asn1EncodableVector.FromEnumerable(ocspResponses));
 }
コード例 #7
0
 public CrlListID(IEnumerable crls)
 {
     if (crls == null)
     {
         throw new ArgumentNullException("crls");
     }
     if (!CollectionUtilities.CheckElementsAreOfType(crls, typeof(CrlValidatedID)))
     {
         throw new ArgumentException("Must contain only 'CrlValidatedID' objects", "crls");
     }
     this.crls = new DerSequence(Asn1EncodableVector.FromEnumerable(crls));
 }
コード例 #8
0
 public CertificateValues(IEnumerable certificates)
 {
     if (certificates == null)
     {
         throw new ArgumentNullException("certificates");
     }
     if (!CollectionUtilities.CheckElementsAreOfType(certificates, typeof(X509CertificateStructure)))
     {
         throw new ArgumentException("Must contain only 'X509CertificateStructure' objects", "certificates");
     }
     this.certificates = new DerSequence(Asn1EncodableVector.FromEnumerable(certificates));
 }
コード例 #9
0
ファイル: OcspListID.cs プロジェクト: smdx24/CPI-Source-Code
 public OcspListID(global::System.Collections.IEnumerable ocspResponses)
 {
     //IL_000e: Unknown result type (might be due to invalid IL or missing references)
     //IL_0030: Unknown result type (might be due to invalid IL or missing references)
     if (ocspResponses == null)
     {
         throw new ArgumentNullException("ocspResponses");
     }
     if (!CollectionUtilities.CheckElementsAreOfType(ocspResponses, typeof(OcspResponsesID)))
     {
         throw new ArgumentException("Must contain only 'OcspResponsesID' objects", "ocspResponses");
     }
     this.ocspResponses = new DerSequence(Asn1EncodableVector.FromEnumerable(ocspResponses));
 }
コード例 #10
0
 public CertificateValues(global::System.Collections.IEnumerable certificates)
 {
     //IL_000e: Unknown result type (might be due to invalid IL or missing references)
     //IL_0030: Unknown result type (might be due to invalid IL or missing references)
     if (certificates == null)
     {
         throw new ArgumentNullException("certificates");
     }
     if (!CollectionUtilities.CheckElementsAreOfType(certificates, typeof(X509CertificateStructure)))
     {
         throw new ArgumentException("Must contain only 'X509CertificateStructure' objects", "certificates");
     }
     this.certificates = new DerSequence(Asn1EncodableVector.FromEnumerable(certificates));
 }
コード例 #11
0
 public CompleteCertificateRefs(global::System.Collections.IEnumerable otherCertIDs)
 {
     //IL_000e: Unknown result type (might be due to invalid IL or missing references)
     //IL_0030: Unknown result type (might be due to invalid IL or missing references)
     if (otherCertIDs == null)
     {
         throw new ArgumentNullException("otherCertIDs");
     }
     if (!CollectionUtilities.CheckElementsAreOfType(otherCertIDs, typeof(OtherCertID)))
     {
         throw new ArgumentException("Must contain only 'OtherCertID' objects", "otherCertIDs");
     }
     this.otherCertIDs = new DerSequence(Asn1EncodableVector.FromEnumerable(otherCertIDs));
 }
コード例 #12
0
 public CompleteRevocationRefs(global::System.Collections.IEnumerable crlOcspRefs)
 {
     //IL_000e: Unknown result type (might be due to invalid IL or missing references)
     //IL_0030: Unknown result type (might be due to invalid IL or missing references)
     if (crlOcspRefs == null)
     {
         throw new ArgumentNullException("crlOcspRefs");
     }
     if (!CollectionUtilities.CheckElementsAreOfType(crlOcspRefs, typeof(CrlOcspRef)))
     {
         throw new ArgumentException("Must contain only 'CrlOcspRef' objects", "crlOcspRefs");
     }
     this.crlOcspRefs = new DerSequence(Asn1EncodableVector.FromEnumerable(crlOcspRefs));
 }
コード例 #13
0
 public RevocationValues(global::System.Collections.IEnumerable crlVals, global::System.Collections.IEnumerable ocspVals, OtherRevVals otherRevVals)
 {
     //IL_0025: Unknown result type (might be due to invalid IL or missing references)
     //IL_005b: Unknown result type (might be due to invalid IL or missing references)
     if (crlVals != null)
     {
         if (!CollectionUtilities.CheckElementsAreOfType(crlVals, typeof(CertificateList)))
         {
             throw new ArgumentException("Must contain only 'CertificateList' objects", "crlVals");
         }
         this.crlVals = new DerSequence(Asn1EncodableVector.FromEnumerable(crlVals));
     }
     if (ocspVals != null)
     {
         if (!CollectionUtilities.CheckElementsAreOfType(ocspVals, typeof(BasicOcspResponse)))
         {
             throw new ArgumentException("Must contain only 'BasicOcspResponse' objects", "ocspVals");
         }
         this.ocspVals = new DerSequence(Asn1EncodableVector.FromEnumerable(ocspVals));
     }
     this.otherRevVals = otherRevVals;
 }
コード例 #14
0
 public OtherSigningCertificate(global::System.Collections.IEnumerable certs, global::System.Collections.IEnumerable policies)
 {
     //IL_000e: Unknown result type (might be due to invalid IL or missing references)
     //IL_0030: Unknown result type (might be due to invalid IL or missing references)
     //IL_0066: Unknown result type (might be due to invalid IL or missing references)
     if (certs == null)
     {
         throw new ArgumentNullException("certs");
     }
     if (!CollectionUtilities.CheckElementsAreOfType(certs, typeof(OtherCertID)))
     {
         throw new ArgumentException("Must contain only 'OtherCertID' objects", "certs");
     }
     this.certs = new DerSequence(Asn1EncodableVector.FromEnumerable(certs));
     if (policies != null)
     {
         if (!CollectionUtilities.CheckElementsAreOfType(policies, typeof(PolicyInformation)))
         {
             throw new ArgumentException("Must contain only 'PolicyInformation' objects", "policies");
         }
         this.policies = new DerSequence(Asn1EncodableVector.FromEnumerable(policies));
     }
 }
コード例 #15
0
 public SignaturePolicyId(DerObjectIdentifier sigPolicyIdentifier, OtherHashAlgAndValue sigPolicyHash, global::System.Collections.IEnumerable sigPolicyQualifiers)
 {
     //IL_000e: Unknown result type (might be due to invalid IL or missing references)
     //IL_001c: Unknown result type (might be due to invalid IL or missing references)
     //IL_004f: Unknown result type (might be due to invalid IL or missing references)
     if (sigPolicyIdentifier == null)
     {
         throw new ArgumentNullException("sigPolicyIdentifier");
     }
     if (sigPolicyHash == null)
     {
         throw new ArgumentNullException("sigPolicyHash");
     }
     this.sigPolicyIdentifier = sigPolicyIdentifier;
     this.sigPolicyHash       = sigPolicyHash;
     if (sigPolicyQualifiers != null)
     {
         if (!CollectionUtilities.CheckElementsAreOfType(sigPolicyQualifiers, typeof(SigPolicyQualifierInfo)))
         {
             throw new ArgumentException("Must contain only 'SigPolicyQualifierInfo' objects", "sigPolicyQualifiers");
         }
         this.sigPolicyQualifiers = new DerSequence(Asn1EncodableVector.FromEnumerable(sigPolicyQualifiers));
     }
 }