Esempio n. 1
0
		public Pfx(
            ContentInfo	contentInfo,
            MacData		macData)
        {
            this.contentInfo = contentInfo;
            this.macData = macData;
        }
Esempio n. 2
0
 public Pfx(
     ContentInfo contentInfo,
     MacData macData)
 {
     this.contentInfo = contentInfo;
     this.macData     = macData;
 }
Esempio n. 3
0
		public Pfx(
            Asn1Sequence seq)
        {
            BigInteger version = ((DerInteger) seq[0]).Value;
            if (version.IntValue != 3)
            {
                throw new ArgumentException("wrong version for PFX PDU");
            }

			contentInfo = ContentInfo.GetInstance(seq[1]);

			if (seq.Count == 3)
            {
                macData = MacData.GetInstance(seq[2]);
            }
        }
Esempio n. 4
0
        public Pfx(
            Asn1Sequence seq)
        {
            BigInteger version = ((DerInteger)seq[0]).Value;

            if (version.IntValue != 3)
            {
                throw new ArgumentException("wrong version for PFX PDU");
            }

            contentInfo = ContentInfo.GetInstance(seq[1]);

            if (seq.Count == 3)
            {
                macData = MacData.GetInstance(seq[2]);
            }
        }