Class ExportControlled

java.lang.Object
com.mysql.jdbc.ExportControlled

public class ExportControlled extends Object
Holds functionality that falls under export-control regulations.
  • Method Details

    • enabled

      protected static boolean enabled()
    • transformSocketToSSLSocket

      protected static void transformSocketToSSLSocket(MysqlIO mysqlIO) throws SQLException
      Converts the socket being used in the given MysqlIO to an SSLSocket by performing the SSL/TLS handshake.
      Parameters:
      mysqlIO - the MysqlIO instance containing the socket to convert to an SSLSocket.
      Throws:
      CommunicationsException - if the handshake fails, or if this distribution of Connector/J doesn't contain the SSL crypto hooks needed to perform the handshake.
      SQLException
    • isSSLEstablished

      public static boolean isSSLEstablished(Socket socket)
    • decodeRSAPublicKey

      public static RSAPublicKey decodeRSAPublicKey(String key, ExceptionInterceptor interceptor) throws SQLException
      Throws:
      SQLException
    • encryptWithRSAPublicKey

      public static byte[] encryptWithRSAPublicKey(byte[] source, RSAPublicKey key, String transformation, ExceptionInterceptor interceptor) throws SQLException
      Throws:
      SQLException