Example #1
0
        /// <summary>
        /// Base constructor - from a byte encoding.
        /// </summary>
        /// <param name="encoding">A byte encoding of a trusted certificate block.</param>
        public X509TrustedCertificateBlock(byte[] encoding)
        {
            Asn1InputStream aIn = new Asn1InputStream(encoding);

            this.certificate = new X509Certificate(aIn.ReadObject().GetEncoded());
            this.trustBlock  = new CertificateTrustBlock(aIn.ReadObject().GetEncoded());
        }
Example #2
0
 /// <summary>
 /// Base constructor - from a certificate and a trust block.
 /// </summary>
 /// <param name="certificate">The certificate to contain.</param>
 /// <param name="trustBlock">The trust block to associate with the certififace.</param>
 public X509TrustedCertificateBlock(X509Certificate certificate, CertificateTrustBlock trustBlock)
 {
     this.certificate = certificate;
     this.trustBlock  = trustBlock;
 }