MCPcopy Create free account
hub / github.com/M66B/FairEmail / startTLS

Method startTLS

app/src/main/java/com/sun/mail/iap/Protocol.java:463–470  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 3

simpleCommandMethod · 0.95
startTLSMethod · 0.95
initStreamsMethod · 0.95

Tested by

no test coverage detected