// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; namespace Microsoft.AspNetCore.Authentication.Certificate { /// /// Configuration options for /// public class CertificateValidationCacheOptions { /// /// Gets or sets the expiration that should be used for entries in the MemoryCache. /// This is a sliding expiration that will extend each time the certificate is used, so long as the certificate is valid (see X509Certificate2.NotAfter). /// /// Defaults to 2 minutes. public TimeSpan CacheEntryExpiration { get; set; } = TimeSpan.FromMinutes(2); /// /// Gets or sets the maximum number of validated certificate results that are allowed to cached. /// /// /// Defaults to 1024. /// public int CacheSize { get; set; } = 1024; } }