public final class Java14 extends JavaImpl
Modifier | Constructor and Description |
---|---|
private |
Java14() |
Modifier and Type | Method and Description |
---|---|
protected Object |
buildKeyManagerFactory(KeyStore ks,
char[] password) |
protected Socket |
buildPlainSocket(SSL ssl,
String remoteHost,
int remotePort,
InetAddress localHost,
int localPort,
int timeout) |
protected RuntimeException |
buildRuntimeException(Exception cause) |
protected SSLServerSocket |
buildServerSocket(SSL ssl) |
protected SSLSocket |
buildSocket(SSL ssl) |
protected SSLSocket |
buildSocket(SSL ssl,
String remoteHost,
int remotePort,
InetAddress localHost,
int localPort,
int timeout) |
protected SSLServerSocketFactory |
buildSSLServerSocketFactory(Object ssl) |
protected SSLSocketFactory |
buildSSLSocketFactory(Object ssl) |
protected Object |
buildTrustManagerFactory(KeyStore ks) |
protected void |
checkTrusted(Object trustManager,
X509Certificate[] chain,
String authType) |
protected Socket |
connectSocket(Socket s,
SocketFactory sf,
String host,
int remotePort,
InetAddress localHost,
int localPort,
int timeout,
SSL ssl) |
protected void |
enabledProtocols(Object o,
String[] enabledProtocols) |
static Java14 |
getInstance() |
String |
getVersion() |
protected Object |
initSSL(SSL ssl,
TrustChain tc,
KeyMaterial k) |
protected String |
retrieveIssuerX500(X509Certificate cert) |
protected Object[] |
retrieveKeyManagers(Object keyManagerFactory) |
protected Certificate[] |
retrievePeerCerts(SSLSession sslSession) |
protected String |
retrieveSubjectX500(X509Certificate cert) |
protected Object[] |
retrieveTrustManagers(Object trustManagerFactory) |
protected void |
wantClientAuth(Object o,
boolean wantClientAuth) |
connect, createPlainSocket, createServerSocket, createSocket, createSocket, downgrade, getIssuerX500, getKeyManagers, getPeerCertificates, getSSLServerSocketFactory, getSSLSocketFactory, getSubjectX500, getTrustManagers, init, isJava13, load, newKeyManagerFactory, newRuntimeException, newTrustManagerFactory, setEnabledProtocols, setWantClientAuth, testTrust, uprade
private Java14()
public static Java14 getInstance()
public final String getVersion()
getVersion
in class JavaImpl
protected final String retrieveSubjectX500(X509Certificate cert)
retrieveSubjectX500
in class JavaImpl
protected final String retrieveIssuerX500(X509Certificate cert)
retrieveIssuerX500
in class JavaImpl
protected final Certificate[] retrievePeerCerts(SSLSession sslSession) throws SSLPeerUnverifiedException
retrievePeerCerts
in class JavaImpl
SSLPeerUnverifiedException
protected final Object buildKeyManagerFactory(KeyStore ks, char[] password) throws NoSuchAlgorithmException, KeyStoreException, UnrecoverableKeyException
buildKeyManagerFactory
in class JavaImpl
NoSuchAlgorithmException
KeyStoreException
UnrecoverableKeyException
protected final Object buildTrustManagerFactory(KeyStore ks) throws NoSuchAlgorithmException, KeyStoreException
buildTrustManagerFactory
in class JavaImpl
NoSuchAlgorithmException
KeyStoreException
protected final Object[] retrieveKeyManagers(Object keyManagerFactory)
retrieveKeyManagers
in class JavaImpl
protected final Object[] retrieveTrustManagers(Object trustManagerFactory)
retrieveTrustManagers
in class JavaImpl
protected final SSLSocketFactory buildSSLSocketFactory(Object ssl)
buildSSLSocketFactory
in class JavaImpl
protected final SSLServerSocketFactory buildSSLServerSocketFactory(Object ssl)
buildSSLServerSocketFactory
in class JavaImpl
protected final RuntimeException buildRuntimeException(Exception cause)
buildRuntimeException
in class JavaImpl
protected final SSLSocket buildSocket(SSL ssl) throws IOException
buildSocket
in class JavaImpl
IOException
protected final SSLSocket buildSocket(SSL ssl, String remoteHost, int remotePort, InetAddress localHost, int localPort, int timeout) throws IOException
buildSocket
in class JavaImpl
IOException
protected final Socket buildPlainSocket(SSL ssl, String remoteHost, int remotePort, InetAddress localHost, int localPort, int timeout) throws IOException
buildPlainSocket
in class JavaImpl
IOException
protected final Socket connectSocket(Socket s, SocketFactory sf, String host, int remotePort, InetAddress localHost, int localPort, int timeout, SSL ssl) throws IOException
connectSocket
in class JavaImpl
IOException
protected final SSLServerSocket buildServerSocket(SSL ssl) throws IOException
buildServerSocket
in class JavaImpl
IOException
protected final void wantClientAuth(Object o, boolean wantClientAuth)
wantClientAuth
in class JavaImpl
protected final void enabledProtocols(Object o, String[] enabledProtocols)
enabledProtocols
in class JavaImpl
protected void checkTrusted(Object trustManager, X509Certificate[] chain, String authType) throws CertificateException
checkTrusted
in class JavaImpl
CertificateException
protected final Object initSSL(SSL ssl, TrustChain tc, KeyMaterial k) throws NoSuchAlgorithmException, KeyStoreException, CertificateException, KeyManagementException, IOException
initSSL
in class JavaImpl
NoSuchAlgorithmException
KeyStoreException
CertificateException
KeyManagementException
IOException