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