def __init__(self, endpoint, realm=None, service='HTTP', keytab=None, server_cert_validation='validate'):
        if not HAVE_KERBEROS:
            raise WinRMTransportError('kerberos', 'kerberos is not installed')

        super(HttpKerberos, self).__init__(endpoint, None, None)
        parsed_url = urlparse(endpoint)
        self.krb_service = '{0}@{1}'.format(
            service, parsed_url.hostname)
        self.scheme = parsed_url.scheme
        self._server_cert_validation = server_cert_validation

        if HAVE_SSLCONTEXT and server_cert_validation == 'ignore':
            self.sslcontext = create_default_context()
            self.sslcontext.check_hostname = False
            self.sslcontext.verify_mode = CERT_NONE
        else:
            self.sslcontext = None

        # self.krb_ticket = KerberosTicket(krb_service)
Uses Kerberos/GSS-API to authenticate and encrypt messages
dataset/ETHPy150Open diyan/pywinrm/winrm/transport.py/HttpKerberos.__init__