GetInstance() public static method

public static GetInstance ( Asn1TaggedObject obj, bool explicitly ) : TbsCertificateList
obj Asn1TaggedObject
explicitly bool
return TbsCertificateList
Example #1
0
        private CertificateList(
            Asn1Sequence seq)
        {
            if (seq.Count != 3)
            {
                throw new ArgumentException("sequence wrong size for CertificateList", "seq");
            }

            tbsCertList = TbsCertificateList.GetInstance(seq[0]);
            sigAlgID    = AlgorithmIdentifier.GetInstance(seq[1]);
            sig         = DerBitString.GetInstance(seq[2]);
        }
 public static TbsCertificateList GetInstance(Asn1TaggedObject obj, bool explicitly)
 {
     return(TbsCertificateList.GetInstance(Asn1Sequence.GetInstance(obj, explicitly)));
 }