def __init__(self, settings = None):
if settings is None:<EOL><INDENT>self.settings = XMPPSettings()<EOL><DEDENT>else:<EOL><INDENT>self.settings = settings<EOL><DEDENT>self.stream = None<EOL>self.requested = False<EOL>self.tls_socket = None<EOL>
Initialize the TLS handler.

        :Parameters:
          - `settings`: settings for StartTLS.
        :Types:
          - `settings`: `XMPPSettings`