public class STARTTLSHandler extends Object
| Constructor and Description |
|---|
STARTTLSHandler(Socket old)
Creates a new instance of the STARTTLSHandler
|
| Modifier and Type | Method and Description |
|---|---|
SSLSocket |
enableTLS(Socket old)
Enables SSL on the socket
|
String |
getResponse()
The response to send to the client
|
public STARTTLSHandler(Socket old)
old - The socket that is currently in use (not encrypted)public SSLSocket enableTLS(Socket old) throws IOException
old - The old (unencrypted) socketIOException - Input or Output failed most likely from failed Handshakepublic String getResponse()
Copyright © 2019. All rights reserved.