public class GeneratingSSLContext extends SSLContext
ciphers, endpointIdentificationAlgorithm, needClientAuth, protocols, wantClientAuth| Constructor and Description |
|---|
GeneratingSSLContext(SSLParser sslParser,
ResolverMap resourceResolver,
String baseLocation) |
| Modifier and Type | Method and Description |
|---|---|
ServerSocket |
createServerSocket(int port,
int backlog,
InetAddress bindAddress) |
Socket |
createSocket(Socket s,
String host,
int port,
int connectTimeout,
String sniServerName) |
Socket |
createSocket(String host,
int port,
InetAddress addr,
int localPort,
int connectTimeout,
String sniServerName) |
Socket |
createSocket(String host,
int port,
int connectTimeout,
String sniServerName) |
SSLContext |
getSSLContextForHostname(String hostname) |
static X509Certificate |
sign(String subjectName,
X509Certificate caPublic,
PrivateKey caPrivate,
PublicKey keyPublic) |
Socket |
wrap(Socket socket,
byte[] buffer,
int position) |
Socket |
wrapAcceptedSocket(Socket socket) |
applyCipherOrdering, applyCiphers, checkChainValidity, constructHostNamePattern, init, showSSLExceptionspublic GeneratingSSLContext(SSLParser sslParser, ResolverMap resourceResolver, String baseLocation)
public ServerSocket createServerSocket(int port, int backlog, InetAddress bindAddress) throws IOException
IOExceptionpublic Socket wrapAcceptedSocket(Socket socket) throws IOException
IOExceptionpublic SSLContext getSSLContextForHostname(String hostname)
public static X509Certificate sign(String subjectName, X509Certificate caPublic, PrivateKey caPrivate, PublicKey keyPublic) throws InvalidKeyException, NoSuchAlgorithmException, NoSuchProviderException, SignatureException, IOException, org.bouncycastle.operator.OperatorCreationException, CertificateException
InvalidKeyExceptionNoSuchAlgorithmExceptionNoSuchProviderExceptionSignatureExceptionIOExceptionorg.bouncycastle.operator.OperatorCreationExceptionCertificateExceptionpublic Socket createSocket(Socket s, String host, int port, int connectTimeout, @Nullable String sniServerName) throws IOException
host - relevant to verify the server cert onlyport - relevant to verify the server cert onlyIOExceptionpublic Socket createSocket(String host, int port, int connectTimeout, @Nullable String sniServerName) throws IOException
IOExceptionpublic Socket createSocket(String host, int port, InetAddress addr, int localPort, int connectTimeout, @Nullable String sniServerName) throws IOException
IOExceptionpublic Socket wrap(Socket socket, byte[] buffer, int position) throws IOException
wrap in class SSLContextIOExceptionCopyright © 2022. All Rights Reserved.