Implements the interface for com.mysql.cj.protocol.SocketFactory for mysql-connector-java prior
to version 8.0.13. This change is required for backwards compatibility.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Class SocketFactory (1.15.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.15.0 (latest)](/java/docs/reference/jdbc-socket-factory-parent/latest/com.google.cloud.sql.mysql.SocketFactory)\n- [1.14.1](/java/docs/reference/jdbc-socket-factory-parent/1.14.1/com.google.cloud.sql.mysql.SocketFactory) \n\n public class SocketFactory implements SocketFactory\n\nA MySQL SocketFactory that establishes a secure connection to a Cloud SQL instance using\nephemeral certificates.\n\nThe heavy lifting is done by the singleton [InternalConnectorRegistry](/java/docs/reference/jdbc-socket-factory-parent/latest/com.google.cloud.sql.core.InternalConnectorRegistry) class. \n\nInheritance\n-----------\n\n[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \\\u003e SocketFactory \n\nImplements\n----------\n\ncom.mysql.cj.protocol.SocketFactory \n\nInherited Members\n-----------------\n\n[Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) \n[Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) \n[Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) \n[Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) \n[Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) \n[Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) \n[Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) \n[Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--) \n[Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) \n[Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) \n[Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)\n\nConstructors\n------------\n\n### SocketFactory()\n\n public SocketFactory()\n\nMethods\n-------\n\n### \\\u003cT\\\u003econnect(String host, int portNumber, PropertySet props, int loginTimeout)\n\n public T \u003cT\u003econnect(String host, int portNumber, PropertySet props, int loginTimeout)\n\n### \\\u003cT\\\u003econnect(String host, int portNumber, Properties props, int loginTimeout)\n\n public T \u003cT\u003econnect(String host, int portNumber, Properties props, int loginTimeout)\n\nImplements the interface for com.mysql.cj.protocol.SocketFactory for mysql-connector-java prior\nto version 8.0.13. This change is required for backwards compatibility.\n\n### \\\u003cT\\\u003eperformTlsHandshake(SocketConnection socketConnection, ServerSession serverSession)\n\n public T \u003cT\u003eperformTlsHandshake(SocketConnection socketConnection, ServerSession serverSession)\n\n### afterHandshake()\n\n public void afterHandshake()\n\n### beforeHandshake()\n\n public void beforeHandshake()"]]