using System;
using System.Security.Cryptography.X509Certificates;
using System.Threading.Tasks;

namespace Titanium.Web.Proxy.Network
{
    /// <summary>
    ///     An object that holds the cached certificate
    /// </summary>
    internal sealed class CachedCertificate
    {
        internal X509Certificate2 Certificate { get; set; }

        /// <summary>
        ///     Last time this certificate was used.
        ///     Useful in determining its cache lifetime.
        /// </summary>
        internal DateTime LastAccess { get; set; }
    }
}
