public class ExportControlled
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ExportControlled.StandardSSLSocketFactory
Implementation of internal socket factory to wrap the SSL socket.
|
Modifier and Type | Method and Description |
---|---|
static java.security.interfaces.RSAPublicKey |
decodeRSAPublicKey(java.lang.String key,
ExceptionInterceptor interceptor) |
protected static boolean |
enabled() |
static byte[] |
encryptWithRSAPublicKey(byte[] source,
java.security.interfaces.RSAPublicKey key,
ExceptionInterceptor interceptor) |
static boolean |
isSSLEstablished(MysqlIO mysqlIO) |
protected static void |
transformSocketToSSLSocket(MysqlIO mysqlIO)
Converts the socket being used in the given MysqlIO to an SSLSocket by
performing the SSL/TLS handshake.
|
protected static boolean enabled()
protected static void transformSocketToSSLSocket(MysqlIO mysqlIO) throws java.sql.SQLException
mysqlIO
- the MysqlIO instance containing the socket to convert to an
SSLSocket.CommunicationsException
- if the handshake fails, or if this distribution of
Connector/J doesn't contain the SSL crytpo hooks needed to
perform the handshake.java.sql.SQLException
public static boolean isSSLEstablished(MysqlIO mysqlIO)
public static java.security.interfaces.RSAPublicKey decodeRSAPublicKey(java.lang.String key, ExceptionInterceptor interceptor) throws java.sql.SQLException
java.sql.SQLException
public static byte[] encryptWithRSAPublicKey(byte[] source, java.security.interfaces.RSAPublicKey key, ExceptionInterceptor interceptor) throws java.sql.SQLException
java.sql.SQLException