Org.BouncyCastle.Asn1.X509.V2Form.GetInstance C# (CSharp) Méthode

GetInstance() public static méthode

public static GetInstance ( Asn1TaggedObject obj, bool explicitly ) : V2Form
obj Asn1TaggedObject
explicitly bool
Résultat V2Form
        public static V2Form GetInstance(
            Asn1TaggedObject	obj,
            bool				explicitly)
        {
            return GetInstance(Asn1Sequence.GetInstance(obj, explicitly));
        }

Same methods

V2Form::GetInstance ( object obj ) : V2Form

Usage Example

Exemple #1
0
        public static AttCertIssuer GetInstance(
            object obj)
        {
            if (obj is AttCertIssuer)
            {
                return((AttCertIssuer)obj);
            }
            else if (obj is V2Form)
            {
                return(new AttCertIssuer(V2Form.GetInstance(obj)));
            }
            else if (obj is GeneralNames)
            {
                return(new AttCertIssuer((GeneralNames)obj));
            }
            else if (obj is Asn1TaggedObject)
            {
                return(new AttCertIssuer(V2Form.GetInstance((Asn1TaggedObject)obj, false)));
            }
            else if (obj is Asn1Sequence)
            {
                return(new AttCertIssuer(GeneralNames.GetInstance(obj)));
            }

            throw new ArgumentException("unknown object in factory: " + obj.GetType().Name, "obj");
        }
All Usage Examples Of Org.BouncyCastle.Asn1.X509.V2Form::GetInstance