Inheritance: DerStringBase
Exemplo n.º 1
0
        protected override bool Asn1Equals(Asn1Object asn1Object)
        {
            DerUniversalString derUniversalString = asn1Object as DerUniversalString;

            if (derUniversalString == null)
            {
                return(false);
            }
            return(Arrays.AreEqual(str, derUniversalString.str));
        }
Exemplo n.º 2
0
        protected override bool Asn1Equals(Asn1Object asn1Object)
        {
            DerUniversalString str = asn1Object as DerUniversalString;

            if (str == null)
            {
                return(false);
            }
            return(Arrays.AreEqual(this.str, str.str));
        }
Exemplo n.º 3
0
        public static DerUniversalString GetInstance(Asn1TaggedObject obj, bool isExplicit)
        {
            Asn1Object @object = obj.GetObject();

            if (isExplicit || @object is DerUniversalString)
            {
                return(DerUniversalString.GetInstance(@object));
            }
            return(new DerUniversalString(Asn1OctetString.GetInstance(@object).GetOctets()));
        }
Exemplo n.º 4
0
        protected override bool Asn1Equals(Asn1Object asn1Object)
        {
            DerUniversalString other = asn1Object as DerUniversalString;

            if (other == null)
            {
                return(false);
            }

//			return this.GetString().Equals(other.GetString());
            return(Arrays.AreEqual(this.str, other.str));
        }
Exemplo n.º 5
0
        protected override bool Asn1Equals(Asn1Object asn1Object)
        {
            DerUniversalString derUniversalString = asn1Object as DerUniversalString;

            return(derUniversalString != null && Arrays.AreEqual(this.str, derUniversalString.str));
        }