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

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

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

import java.security.cert.X509Certificate;
import java.util.List;

/**
 * A functional interface to allow customization of the certificates generated by the
 * {@link com.browserup.bup.mitm.manager.ImpersonatingMitmManager}.
 */
public interface CertificateInfoGenerator {
    /**
     * Generate a certificate for the specified hostnames, optionally using parameters from the originalCertificate.
     *
     * @param hostnames the hostnames to generate the certificate for, which may include wildcards
     * @param originalCertificate original X.509 certificate sent by the upstream server, which may be null
     * @return CertificateInfo to be used to create an X509Certificate for the specified hostnames
     */
    CertificateInfo generate(List hostnames, X509Certificate originalCertificate);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy