The connectors uses constructor injection of the encryption type to use, and optional handshake parameters.
[...] /* * Example parameters */ int port = 4123; String host = "localhost"; Encryption enc = Encryption.NONE; /* * Create connector and connect */ Connector connector = new SocketConnector(host, port, enc); connector.connect(); [...]
If a handshake is required by the server, this will have to be included in the constructor.