All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.browserup.bup.mitm.CertificateAndKeySource Maven / Gradle / Ivy

There is a newer version: 2.2.19
Show newest version
package com.browserup.bup.mitm;

/**
 * A CertificateAndKeySource generates {@link CertificateAndKey}s, i.e. the root certificate and private key used
 * to sign impersonated certificates of upstream servers. Implementations of this interface load impersonation materials
 * from various sources, including Java KeyStores, JKS files, etc., or generate them on-the-fly.
 */
public interface CertificateAndKeySource {
    /**
     * Loads a certificate and its corresponding private key. Every time this method is called, it should return the same
     * certificate and private key (although it may be a different {@link CertificateAndKey} instance).
     *
     * @return certificate and its corresponding private key
     */
    CertificateAndKey load();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy