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

            if (derUtcTime == null)
            {
                return(false);
            }
            return(time.Equals(derUtcTime.time));
        }
Exemplo n.º 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()));
        }
Exemplo n.º 3
0
        protected override bool Asn1Equals(
            Asn1Object asn1Object)
        {
            DerUtcTime other = asn1Object as DerUtcTime;

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

            return(this.time.Equals(other.time));
        }
Exemplo n.º 4
0
        protected override bool Asn1Equals(Asn1Object asn1Object)
        {
            DerUtcTime derUtcTime = asn1Object as DerUtcTime;

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