TlsStream.shutdown

TlsProgress shutdown()

Initiates graceful TLS shutdown (sends close_notify).

Call repeatedly until TlsProgress.DONE is returned. After calling shutdown(), do not call read() or write().

Returns

TlsProgress.DONE when shutdown is complete.