Inheritance: DerStringBase
コード例 #1
0
        public static DerBmpString GetInstance(Asn1TaggedObject obj, bool isExplicit)
        {
            Asn1Object @object = obj.GetObject();

            if (isExplicit || @object is DerBmpString)
            {
                return(DerBmpString.GetInstance(@object));
            }
            return(new DerBmpString(Asn1OctetString.GetInstance(@object).GetOctets()));
        }
コード例 #2
0
        protected override bool Asn1Equals(Asn1Object asn1Object)
        {
            DerBmpString str = asn1Object as DerBmpString;

            if (str == null)
            {
                return(false);
            }
            return(this.str.Equals(str.str));
        }
コード例 #3
0
        protected override bool Asn1Equals(Asn1Object asn1Object)
        {
            DerBmpString derBmpString = asn1Object as DerBmpString;

            if (derBmpString == null)
            {
                return(false);
            }
            return(str.Equals(derBmpString.str));
        }
コード例 #4
0
        protected override bool Asn1Equals(
            Asn1Object obj)
        {
            DerBmpString other = obj as DerBmpString;

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

            return(this.str.Equals(other.str));
        }
コード例 #5
0
        protected override bool Asn1Equals(Asn1Object asn1Object)
        {
            DerBmpString derBmpString = asn1Object as DerBmpString;

            return(derBmpString != null && this.str.Equals(derBmpString.str));
        }