GetInstance() public static méthode

public static GetInstance ( Asn1TaggedObject obj, bool explicitly ) : DistributionPointName
obj Asn1TaggedObject
explicitly bool
Résultat DistributionPointName
		private IssuingDistributionPoint(Asn1Sequence seq)
		{
			//IL_00c0: Unknown result type (might be due to invalid IL or missing references)
			this.seq = seq;
			for (int i = 0; i != seq.Count; i++)
			{
				Asn1TaggedObject instance = Asn1TaggedObject.GetInstance(seq[i]);
				switch (instance.TagNo)
				{
				case 0:
					_distributionPoint = DistributionPointName.GetInstance(instance, explicitly: true);
					break;
				case 1:
					_onlyContainsUserCerts = DerBoolean.GetInstance(instance, isExplicit: false).IsTrue;
					break;
				case 2:
					_onlyContainsCACerts = DerBoolean.GetInstance(instance, isExplicit: false).IsTrue;
					break;
				case 3:
					_onlySomeReasons = new ReasonFlags(DerBitString.GetInstance(instance, isExplicit: false));
					break;
				case 4:
					_indirectCRL = DerBoolean.GetInstance(instance, isExplicit: false).IsTrue;
					break;
				case 5:
					_onlyContainsAttributeCerts = DerBoolean.GetInstance(instance, isExplicit: false).IsTrue;
					break;
				default:
					throw new ArgumentException("unknown tag in IssuingDistributionPoint");
				}
			}
		}
Exemple #2
0
        /**
         * Constructor from Asn1Sequence
         */
        private IssuingDistributionPoint(
            Asn1Sequence seq)
        {
            this.seq = seq;

            for (int i = 0; i != seq.Count; i++)
            {
                Asn1TaggedObject o = Asn1TaggedObject.GetInstance(seq[i]);

                switch (o.TagNo)
                {
                case 0:
                    // CHOICE so explicit
                    _distributionPoint = DistributionPointName.GetInstance(o, true);
                    break;

                case 1:
                    _onlyContainsUserCerts = DerBoolean.GetInstance(o, false).IsTrue;
                    break;

                case 2:
                    _onlyContainsCACerts = DerBoolean.GetInstance(o, false).IsTrue;
                    break;

                case 3:
                    _onlySomeReasons = new ReasonFlags(ReasonFlags.GetInstance(o, false));
                    break;

                case 4:
                    _indirectCRL = DerBoolean.GetInstance(o, false).IsTrue;
                    break;

                case 5:
                    _onlyContainsAttributeCerts = DerBoolean.GetInstance(o, false).IsTrue;
                    break;

                default:
                    throw new ArgumentException("unknown tag in IssuingDistributionPoint");
                }
            }
        }
Exemple #3
0
        private DistributionPoint(Asn1Sequence seq)
        {
            for (int num = 0; num != seq.Count; num++)
            {
                Asn1TaggedObject instance = Asn1TaggedObject.GetInstance(seq[num]);
                switch (instance.TagNo)
                {
                case 0:
                    this.distributionPoint = DistributionPointName.GetInstance(instance, true);
                    break;

                case 1:
                    this.reasons = new ReasonFlags(DerBitString.GetInstance(instance, false));
                    break;

                case 2:
                    this.cRLIssuer = GeneralNames.GetInstance(instance, false);
                    break;
                }
            }
        }
Exemple #4
0
        private DistributionPoint(
            Asn1Sequence seq)
        {
            for (int i = 0; i != seq.Count; i++)
            {
                Asn1TaggedObject t = Asn1TaggedObject.GetInstance(seq[i]);

                switch (t.TagNo)
                {
                case 0:
                    distributionPoint = DistributionPointName.GetInstance(t, true);
                    break;

                case 1:
                    reasons = new ReasonFlags(DerBitString.GetInstance(t, false));
                    break;

                case 2:
                    cRLIssuer = GeneralNames.GetInstance(t, false);
                    break;
                }
            }
        }
Exemple #5
0
        private IssuingDistributionPoint(Asn1Sequence seq)
        {
            this.seq = seq;
            for (int num = 0; num != seq.Count; num++)
            {
                Asn1TaggedObject instance = Asn1TaggedObject.GetInstance(seq[num]);
                switch (instance.TagNo)
                {
                case 0:
                    this._distributionPoint = DistributionPointName.GetInstance(instance, true);
                    break;

                case 1:
                    this._onlyContainsUserCerts = DerBoolean.GetInstance(instance, false).IsTrue;
                    break;

                case 2:
                    this._onlyContainsCACerts = DerBoolean.GetInstance(instance, false).IsTrue;
                    break;

                case 3:
                    this._onlySomeReasons = new ReasonFlags(DerBitString.GetInstance(instance, false));
                    break;

                case 4:
                    this._indirectCRL = DerBoolean.GetInstance(instance, false).IsTrue;
                    break;

                case 5:
                    this._onlyContainsAttributeCerts = DerBoolean.GetInstance(instance, false).IsTrue;
                    break;

                default:
                    throw new ArgumentException("unknown tag in IssuingDistributionPoint");
                }
            }
        }
 public static DistributionPointName GetInstance(Asn1TaggedObject obj, bool explicitly)
 {
     return(DistributionPointName.GetInstance(Asn1TaggedObject.GetInstance(obj, true)));
 }