web.clientjob.secure_connection.SecureConnection

Package web :: Package clientjob :: Module secure_connection :: Class SecureConnection |
[hide private]
[frames] | no frames]

# Class SecureConnection

source code

    httplib.HTTPConnection --+
                             |
       httplib.HTTPSConnection --+
                                 |
                                SecureConnection

This is an https connection that verifies that the server certificate is signed by a trusted ca_cert.

NOTE that it does NOT validate that the hostname matches the one in the certificate, because multiple clients (with different hostnames) will use the same certificate. Thus, for us it's enough to know that a given client has the private key whose public key is trusted.

Nested Classes | [hide private]
Inherited from `httplib.HTTPConnection`: `response_class`

Instance Methods | [hide private]
connect(self) Connect to a host on a given (SSL) port. | source code
Inherited from `httplib.HTTPSConnection`: `__init__` Inherited from `httplib.HTTPConnection`: `close`, `endheaders`, `getresponse`, `putheader`, `putrequest`, `request`, `send`, `set_debuglevel` Inherited from `httplib.HTTPConnection` (private): `_output`, `_send_output`, `_send_request`, `_set_hostport`, `_set_tunnel`, `_tunnel`

Class Variables | [hide private]
Inherited from `httplib.HTTPSConnection`: `default_port` Inherited from `httplib.HTTPConnection`: `auto_open`, `debuglevel`, `strict` Inherited from `httplib.HTTPConnection` (private): `_http_vsn`, `_http_vsn_str`

Method Details | [hide private]

### connect(self) | source code
Connect to a host on a given (SSL) port. Overrides: httplib.HTTPConnection.connect (inherited documentation)