(self, header)
| 92 | self.__TGS = TGS |
| 93 | |
| 94 | def parse_www_authenticate(self, header): |
| 95 | ret = [] |
| 96 | |
| 97 | if 'NTLM' in header: |
| 98 | ret.append(AUTH_NTLM) |
| 99 | if 'Basic' in header: |
| 100 | ret.append(AUTH_BASIC) |
| 101 | if 'Negotiate' in header: |
| 102 | ret.append(AUTH_NEGOTIATE) |
| 103 | if 'Bearer' in header: |
| 104 | ret.append(AUTH_BEARER) |
| 105 | if 'Digest' in header: |
| 106 | ret.append(AUTH_DIGEST) |
| 107 | |
| 108 | return ret |
| 109 | |
| 110 | def connect(self, protocol, host_L6): |
| 111 | if protocol == 'http': |