org.bouncycastle.jsse.provider.ExportX509TrustManager_5 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
package org.bouncycastle.jsse.provider;
import java.security.cert.CertificateException;
import java.security.cert.X509Certificate;
import javax.net.ssl.X509TrustManager;
import org.bouncycastle.jsse.BCX509ExtendedTrustManager;
class ExportX509TrustManager_5
implements X509TrustManager, ExportX509TrustManager
{
final BCX509ExtendedTrustManager x509TrustManager;
ExportX509TrustManager_5(BCX509ExtendedTrustManager x509TrustManager)
{
this.x509TrustManager = x509TrustManager;
}
public BCX509ExtendedTrustManager unwrap()
{
return x509TrustManager;
}
public void checkClientTrusted(X509Certificate[] chain, String authType)
throws CertificateException
{
x509TrustManager.checkClientTrusted(chain, authType);
}
public void checkServerTrusted(X509Certificate[] chain, String authType)
throws CertificateException
{
x509TrustManager.checkServerTrusted(chain, authType);
}
public X509Certificate[] getAcceptedIssuers()
{
return x509TrustManager.getAcceptedIssuers();
}
}