#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
#pragma warning disable
using Best.HTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;

namespace Best.HTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
{
	public class CrlAnnContent
		: Asn1Encodable
	{
        public static CrlAnnContent GetInstance(object obj)
        {
			if (obj is CrlAnnContent crlAnnContent)
				return crlAnnContent;

			if (obj != null)
				return new CrlAnnContent(Asn1Sequence.GetInstance(obj));

			return null;
        }

        private readonly Asn1Sequence m_content;

		private CrlAnnContent(Asn1Sequence seq)
		{
			m_content = seq;
		}

        public CrlAnnContent(CertificateList crl)
        {
            m_content = new DerSequence(crl);
        }

        public virtual CertificateList[] ToCertificateListArray()
		{
			return m_content.MapElements(CertificateList.GetInstance);
		}

		/**
		 * <pre>
		 * CrlAnnContent ::= SEQUENCE OF CertificateList
		 * </pre>
		 * @return a basic ASN.1 object representation.
		 */
		public override Asn1Object ToAsn1Object()
		{
			return m_content;
		}
	}
}
#pragma warning restore
#endif
