Org.BouncyCastle.Asn1.X509.GeneralName.GetInstance C# (CSharp) Method

GetInstance() public static method

public static GetInstance ( Asn1TaggedObject tagObj, bool explicitly ) : GeneralName
tagObj Asn1TaggedObject
explicitly bool
return GeneralName
		public static GeneralName GetInstance(
            Asn1TaggedObject	tagObj,
            bool				explicitly)
        {
            return GetInstance(Asn1TaggedObject.GetInstance(tagObj, true));
        }

Same methods

GeneralName::GetInstance ( object obj ) : GeneralName

Usage Example

コード例 #1
0
        private RoleSyntax(Asn1Sequence seq)
        {
            if (seq.Count < 1 || seq.Count > 2)
            {
                throw new ArgumentException("Bad sequence size: " + seq.Count);
            }
            for (int num = 0; num != seq.Count; num++)
            {
                Asn1TaggedObject instance = Asn1TaggedObject.GetInstance(seq[num]);
                switch (instance.TagNo)
                {
                case 0:
                    this.roleAuthority = GeneralNames.GetInstance(instance, false);
                    break;

                case 1:
                    this.roleName = GeneralName.GetInstance(instance, true);
                    break;

                default:
                    throw new ArgumentException("Unknown tag in RoleSyntax");
                }
            }
        }
All Usage Examples Of Org.BouncyCastle.Asn1.X509.GeneralName::GetInstance