Start TLS on the current connection. cmd is the command to issue to start TLS negotiation. If the command succeeds, we begin TLS negotiation. If the socket is already an SSLSocket this is a nop and the command is not issued. @param cmd the command to issue @exception IOException for I/
(String cmd)
| 461 | * @exception ProtocolException for protocol failures |
| 462 | */ |
| 463 | public synchronized void startTLS(String cmd) |
| 464 | throws IOException, ProtocolException { |
| 465 | if (socket instanceof SSLSocket) |
| 466 | return; // nothing to do |
| 467 | simpleCommand(cmd, null); |
| 468 | socket = SocketFetcher.startTLS(socket, host, props, prefix); |
| 469 | initStreams(); |
| 470 | } |
| 471 | |
| 472 | /** |
| 473 | * Start compression on the current connection. |
nothing calls this directly
no test coverage detected