Class DefaultCertificateDiskCache
Inheritance
DefaultCertificateDiskCache
Assembly: Titanium.Web.Proxy.dll
Syntax
public sealed class DefaultCertificateDiskCache : ICertificateCache
Methods
|
Edit this page
View Source
Clear()
Declaration
|
Edit this page
View Source
LoadCertificate(string, X509KeyStorageFlags)
Loads a leaf certificate by subject name. Returns null if the certificate is missing or cannot be loaded.
Declaration
public X509Certificate2? LoadCertificate(string subjectName, X509KeyStorageFlags storageFlags)
Parameters
Returns
|
Edit this page
View Source
LoadRootCertificate(string, string, X509KeyStorageFlags)
Loads the root certificate from the storage.
Declaration
public X509Certificate2? LoadRootCertificate(string pathOrName, string password, X509KeyStorageFlags storageFlags)
Parameters
Returns
|
Edit this page
View Source
PruneToMaxEntries(int?)
Deletes the oldest (by last-write time) leaf certificate files in the on-disk cache directory
until at most maxEntries remain. Unlike the in-memory certificate cache,
nothing else ever removes entries here, so without this bound a long-running proxy that sees
traffic to many distinct hostnames accumulates one permanent .pfx file per hostname forever.
A null or non-positive maxEntries disables the bound.
Declaration
public void PruneToMaxEntries(int? maxEntries)
Parameters
| Type |
Name |
Description |
| int? |
maxEntries |
|
|
Edit this page
View Source
SaveCertificate(string, X509Certificate2)
Stores certificate into the storage.
Declaration
public void SaveCertificate(string subjectName, X509Certificate2 certificate)
Parameters
|
Edit this page
View Source
SaveRootCertificate(string, string, X509Certificate2)
Saves the root certificate to the storage.
Declaration
public void SaveRootCertificate(string pathOrName, string password, X509Certificate2 certificate)
Parameters
Implements