org.bouncycastle.jsse.provider.PKIXUtil Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of impersonator Show documentation
Show all versions of impersonator Show documentation
Spoof TLS/JA3/JA4 and HTTP/2 fingerprints in Java
The newest version!
package org.bouncycastle.jsse.provider;
import java.security.cert.CertPathBuilder;
import java.security.cert.PKIXBuilderParameters;
import java.security.cert.X509Certificate;
import java.util.Map;
abstract class PKIXUtil
{
private static final Class> pkixRevocationCheckerClass;
static
{
Class> clazz = null;
try
{
clazz = ReflectionUtil.getClass("java.security.cert.PKIXRevocationChecker");
}
catch (Exception e)
{
}
pkixRevocationCheckerClass = clazz;
}
static void addStatusResponses(CertPathBuilder pkixBuilder, PKIXBuilderParameters pkixParameters,
Map statusResponseMap)
{
if (null != pkixRevocationCheckerClass)
{
JsseUtils_8.addStatusResponses(pkixBuilder, pkixParameters, statusResponseMap);
}
}
}