org.bouncycastle.jsse.provider.ProvTlsManager 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.io.IOException;
import java.security.Principal;
import java.security.cert.X509Certificate;
import java.util.List;
import org.bouncycastle.jsse.BCX509Key;
import org.bouncycastle.tls.SecurityParameters;
interface ProvTlsManager
{
void checkClientTrusted(X509Certificate[] chain, String authType) throws IOException;
void checkServerTrusted(X509Certificate[] chain, String authType) throws IOException;
BCX509Key chooseClientKey(String[] keyTypes, Principal[] issuers);
BCX509Key chooseServerKey(String[] keyTypes, Principal[] issuers);
boolean getEnableSessionCreation();
ContextData getContextData();
String getPeerHost();
String getPeerHostSNI();
int getPeerPort();
int getTransportID();
void notifyHandshakeComplete(ProvSSLConnection connection);
void notifyHandshakeSession(ProvSSLSessionContext sslSessionContext, SecurityParameters securityParameters,
JsseSecurityParameters jsseSecurityParameters, ProvSSLSession resumedSession);
String selectApplicationProtocol(List protocols);
}