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, upradeprivate Java14()
public static Java14 getInstance()
public final String getVersion()
getVersion in class JavaImplprotected final String retrieveSubjectX500(X509Certificate cert)
retrieveSubjectX500 in class JavaImplprotected final String retrieveIssuerX500(X509Certificate cert)
retrieveIssuerX500 in class JavaImplprotected final Certificate[] retrievePeerCerts(SSLSession sslSession) throws SSLPeerUnverifiedException
retrievePeerCerts in class JavaImplSSLPeerUnverifiedExceptionprotected final Object buildKeyManagerFactory(KeyStore ks, char[] password) throws NoSuchAlgorithmException, KeyStoreException, UnrecoverableKeyException
buildKeyManagerFactory in class JavaImplNoSuchAlgorithmExceptionKeyStoreExceptionUnrecoverableKeyExceptionprotected final Object buildTrustManagerFactory(KeyStore ks) throws NoSuchAlgorithmException, KeyStoreException
buildTrustManagerFactory in class JavaImplNoSuchAlgorithmExceptionKeyStoreExceptionprotected final Object[] retrieveKeyManagers(Object keyManagerFactory)
retrieveKeyManagers in class JavaImplprotected final Object[] retrieveTrustManagers(Object trustManagerFactory)
retrieveTrustManagers in class JavaImplprotected final SSLSocketFactory buildSSLSocketFactory(Object ssl)
buildSSLSocketFactory in class JavaImplprotected final SSLServerSocketFactory buildSSLServerSocketFactory(Object ssl)
buildSSLServerSocketFactory in class JavaImplprotected final RuntimeException buildRuntimeException(Exception cause)
buildRuntimeException in class JavaImplprotected final SSLSocket buildSocket(SSL ssl) throws IOException
buildSocket in class JavaImplIOExceptionprotected final SSLSocket buildSocket(SSL ssl, String remoteHost, int remotePort, InetAddress localHost, int localPort, int timeout) throws IOException
buildSocket in class JavaImplIOExceptionprotected final Socket buildPlainSocket(SSL ssl, String remoteHost, int remotePort, InetAddress localHost, int localPort, int timeout) throws IOException
buildPlainSocket in class JavaImplIOExceptionprotected final Socket connectSocket(Socket s, SocketFactory sf, String host, int remotePort, InetAddress localHost, int localPort, int timeout, SSL ssl) throws IOException
connectSocket in class JavaImplIOExceptionprotected final SSLServerSocket buildServerSocket(SSL ssl) throws IOException
buildServerSocket in class JavaImplIOExceptionprotected final void wantClientAuth(Object o, boolean wantClientAuth)
wantClientAuth in class JavaImplprotected final void enabledProtocols(Object o, String[] enabledProtocols)
enabledProtocols in class JavaImplprotected void checkTrusted(Object trustManager, X509Certificate[] chain, String authType) throws CertificateException
checkTrusted in class JavaImplCertificateExceptionprotected final Object initSSL(SSL ssl, TrustChain tc, KeyMaterial k) throws NoSuchAlgorithmException, KeyStoreException, CertificateException, KeyManagementException, IOException
initSSL in class JavaImplNoSuchAlgorithmExceptionKeyStoreExceptionCertificateExceptionKeyManagementExceptionIOException