'Set the authorization style for communicating with the server.
Supports basic_auth for now. Certificate_auth mode to be done.'

def set_style(self, style):

    if (style.lower() not in (NaServer.STYLE_LOGIN_PASSWORD, NaServer.STYLE_CERTIFICATE)):
        raise ValueError('Unsupported    authentication    style')
    self._auth_style = style.lower()
