Search Results for

    Show / Hide Table of Contents

    Class DefaultCertificateDiskCache

    Inheritance
    object
    DefaultCertificateDiskCache
    Implements
    ICertificateCache
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Titanium.Web.Proxy.Network
    Assembly: Titanium.Web.Proxy.dll
    Syntax
    public sealed class DefaultCertificateDiskCache : ICertificateCache

    Methods

    | Edit this page View Source

    Clear()

    Clears the storage.

    Declaration
    public void Clear()
    | 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
    Type Name Description
    string subjectName
    X509KeyStorageFlags storageFlags
    Returns
    Type Description
    X509Certificate2
    | 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
    Type Name Description
    string pathOrName
    string password
    X509KeyStorageFlags storageFlags
    Returns
    Type Description
    X509Certificate2
    | 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
    Type Name Description
    string subjectName
    X509Certificate2 certificate
    | 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
    Type Name Description
    string pathOrName
    string password
    X509Certificate2 certificate

    Implements

    ICertificateCache
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX