#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
#pragma warning disable
using System;

namespace Best.HTTP.SecureProtocol.Org.BouncyCastle.Asn1
{
    public class DerUtcTime
        : Asn1UtcTime
    {
        public DerUtcTime(string timeString)
			: base(timeString)
        {
        }


        public DerUtcTime(DateTime dateTime)
			: base(dateTime)
        {
        }

        public DerUtcTime(DateTime dateTime, int twoDigitYearMax)
            : base(dateTime, twoDigitYearMax)
        {
        }

        internal DerUtcTime(byte[] contents)
			: base(contents)
        {
        }

        internal override IAsn1Encoding GetEncoding(int encoding)
        {
            return new PrimitiveEncoding(Asn1Tags.Universal, Asn1Tags.UtcTime,
                GetContents(Asn1OutputStream.EncodingDer));
        }

        internal override IAsn1Encoding GetEncodingImplicit(int encoding, int tagClass, int tagNo)
        {
            return new PrimitiveEncoding(tagClass, tagNo, GetContents(Asn1OutputStream.EncodingDer));
        }
    }
}
#pragma warning restore
#endif
