public getInputStream() as SSLSocketInputStream:
import klyn.net.ssl socket = SSLSocket() print(socket.getInputStream() is SSLSocketInputStream)