GetInstance() public static method

public static GetInstance ( object obj ) : MacData
obj object
return MacData
コード例 #1
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]);
            }
        }
コード例 #2
0
ファイル: Pfx.cs プロジェクト: straight-coding/EmbedTools
        public Pfx(
            Asn1Sequence seq)
        {
            DerInteger version = DerInteger.GetInstance(seq[0]);

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

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

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