ValueOf() public static method

public static ValueOf ( int value ) : SubsequentMessage
value int
return SubsequentMessage
Exemplo n.º 1
0
        private PopoPrivKey(Asn1TaggedObject obj)
        {
            //IL_0094: Unknown result type (might be due to invalid IL or missing references)
            tagNo = obj.TagNo;
            switch (tagNo)
            {
            case 0:
                this.obj = DerBitString.GetInstance(obj, isExplicit: false);
                break;

            case 1:
                this.obj = SubsequentMessage.ValueOf(DerInteger.GetInstance(obj, isExplicit: false).Value.IntValue);
                break;

            case 2:
                this.obj = DerBitString.GetInstance(obj, isExplicit: false);
                break;

            case 3:
                this.obj = PKMacValue.GetInstance(obj, isExplicit: false);
                break;

            case 4:
                this.obj = EnvelopedData.GetInstance(obj, explicitly: false);
                break;

            default:
                throw new ArgumentException("unknown tag in PopoPrivKey", "obj");
            }
        }
Exemplo n.º 2
0
        private PopoPrivKey(Asn1TaggedObject obj)
        {
            this.tagNo = obj.TagNo;

            switch (tagNo)
            {
            case thisMessage:
                this.obj = DerBitString.GetInstance(obj, false);
                break;

            case subsequentMessage:
                this.obj = SubsequentMessage.ValueOf(DerInteger.GetInstance(obj, false).Value.IntValue);
                break;

            case dhMAC:
                this.obj = DerBitString.GetInstance(obj, false);
                break;

            case agreeMAC:
                this.obj = PKMacValue.GetInstance(obj, false);
                break;

            case encryptedKey:
                this.obj = EnvelopedData.GetInstance(obj, false);
                break;

            default:
                throw new ArgumentException("unknown tag in PopoPrivKey", "obj");
            }
        }
Exemplo n.º 3
0
        private PopoPrivKey(Asn1TaggedObject obj)
        {
            this.tagNo = obj.TagNo;
            switch (this.tagNo)
            {
            case 0:
                this.obj = DerBitString.GetInstance(obj, false);
                return;

            case 1:
                this.obj = SubsequentMessage.ValueOf(DerInteger.GetInstance(obj, false).Value.IntValue);
                return;

            case 2:
                this.obj = DerBitString.GetInstance(obj, false);
                return;

            case 3:
                this.obj = PKMacValue.GetInstance(obj, false);
                return;

            case 4:
                this.obj = EnvelopedData.GetInstance(obj, false);
                return;

            default:
                throw new ArgumentException("unknown tag in PopoPrivKey", "obj");
            }
        }