Inheritance: Asn1Object
示例#1
0
        protected override bool Asn1Equals(Asn1Object asn1Object)
        {
            DerUtcTime derUtcTime = asn1Object as DerUtcTime;

            if (derUtcTime == null)
            {
                return(false);
            }
            return(time.Equals(derUtcTime.time));
        }
示例#2
0
        public static DerUtcTime GetInstance(Asn1TaggedObject obj, bool isExplicit)
        {
            Asn1Object @object = obj.GetObject();

            if (isExplicit || @object is DerUtcTime)
            {
                return(DerUtcTime.GetInstance(@object));
            }
            return(new DerUtcTime(((Asn1OctetString)@object).GetOctets()));
        }
示例#3
0
        protected override bool Asn1Equals(
            Asn1Object asn1Object)
        {
            DerUtcTime other = asn1Object as DerUtcTime;

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

            return(this.time.Equals(other.time));
        }
示例#4
0
        protected override bool Asn1Equals(Asn1Object asn1Object)
        {
            DerUtcTime derUtcTime = asn1Object as DerUtcTime;

            return(derUtcTime != null && this.time.Equals(derUtcTime.time));
        }