public class HostnameCertificateInfoGenerator extends Object implements CertificateInfoGenerator
CertificateInfoGenerator that uses only a hostname to populate a new CertificateInfo. The
values in the upstream server's original X.509 certificate will be ignored.| Constructor and Description |
|---|
HostnameCertificateInfoGenerator() |
| Modifier and Type | Method and Description |
|---|---|
CertificateInfo |
generate(List<String> hostnames,
X509Certificate originalCertificate)
Generate a certificate for the specified hostnames, optionally using parameters from the originalCertificate.
|
protected Date |
getNotAfter()
Returns the default Not After date for impersonated certificates.
|
protected Date |
getNotBefore()
Returns the default Not Before date for impersonated certificates.
|
public CertificateInfo generate(List<String> hostnames, X509Certificate originalCertificate)
CertificateInfoGeneratorgenerate in interface CertificateInfoGeneratorhostnames - the hostnames to generate the certificate for, which may include wildcardsoriginalCertificate - original X.509 certificate sent by the upstream server, which may be nullprotected Date getNotBefore()
protected Date getNotAfter()
Copyright © 2016. All Rights Reserved.