Package com.browserup.bup.mitm
Interface CertificateInfoGenerator
-
- All Known Implementing Classes:
HostnameCertificateInfoGenerator
public interface CertificateInfoGeneratorA functional interface to allow customization of the certificates generated by theImpersonatingMitmManager.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CertificateInfogenerate(java.util.List<java.lang.String> hostnames, java.security.cert.X509Certificate originalCertificate)Generate a certificate for the specified hostnames, optionally using parameters from the originalCertificate.
-
-
-
Method Detail
-
generate
CertificateInfo generate(java.util.List<java.lang.String> hostnames, java.security.cert.X509Certificate originalCertificate)
Generate a certificate for the specified hostnames, optionally using parameters from the originalCertificate.- Parameters:
hostnames- the hostnames to generate the certificate for, which may include wildcardsoriginalCertificate- original X.509 certificate sent by the upstream server, which may be null- Returns:
- CertificateInfo to be used to create an X509Certificate for the specified hostnames
-
-