| |
| <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
| <html><head><title>Python: module gdata.tlslite.HandshakeSettings</title> |
| </head><body bgcolor="#f0f0f8"> |
| |
| <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> |
| <tr bgcolor="#7799ee"> |
| <td valign=bottom> <br> |
| <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="gdata.html"><font color="#ffffff">gdata</font></a>.<a href="gdata.tlslite.html"><font color="#ffffff">tlslite</font></a>.HandshakeSettings</strong></big></big></font></td |
| ><td align=right valign=bottom |
| ><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/usr/local/google/home/afshar/src/external-gdata-release/google3/src/gdata/tlslite/HandshakeSettings.py">/usr/local/google/home/afshar/src/external-gdata-release/google3/src/gdata/tlslite/HandshakeSettings.py</a></font></td></tr></table> |
| <p><tt>Class for setting handshake parameters.</tt></p> |
| <p> |
| <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| <tr bgcolor="#aa55cc"> |
| <td colspan=3 valign=bottom> <br> |
| <font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr> |
| |
| <tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td> |
| <td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="gdata.tlslite.utils.cipherfactory.html">gdata.tlslite.utils.cipherfactory</a><br> |
| </td><td width="25%" valign=top><a href="gdata.tlslite.utils.cryptomath.html">gdata.tlslite.utils.cryptomath</a><br> |
| </td><td width="25%" valign=top></td><td width="25%" valign=top></td></tr></table></td></tr></table><p> |
| <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| <tr bgcolor="#ee77aa"> |
| <td colspan=3 valign=bottom> <br> |
| <font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr> |
| |
| <tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td> |
| <td width="100%"><dl> |
| <dt><font face="helvetica, arial"><a href="gdata.tlslite.HandshakeSettings.html#HandshakeSettings">HandshakeSettings</a> |
| </font></dt></dl> |
| <p> |
| <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| <tr bgcolor="#ffc8d8"> |
| <td colspan=3 valign=bottom> <br> |
| <font color="#000000" face="helvetica, arial"><a name="HandshakeSettings">class <strong>HandshakeSettings</strong></a></font></td></tr> |
| |
| <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> |
| <td colspan=2><tt>This class encapsulates various parameters that can be used with<br> |
| a TLS handshake.<br> |
| @sort: minKeySize, maxKeySize, cipherNames, certificateTypes,<br> |
| minVersion, maxVersion<br> |
| <br> |
| @type minKeySize: int<br> |
| @ivar minKeySize: The minimum bit length for asymmetric keys.<br> |
| <br> |
| If the other party tries to use SRP, RSA, or Diffie-Hellman<br> |
| parameters smaller than this length, an alert will be<br> |
| signalled. The default is 1023.<br> |
| <br> |
| @type maxKeySize: int<br> |
| @ivar maxKeySize: The maximum bit length for asymmetric keys.<br> |
| <br> |
| If the other party tries to use SRP, RSA, or Diffie-Hellman<br> |
| parameters larger than this length, an alert will be signalled.<br> |
| The default is 8193.<br> |
| <br> |
| @type cipherNames: list<br> |
| @ivar cipherNames: The allowed ciphers, in order of preference.<br> |
| <br> |
| The allowed values in this list are 'aes256', 'aes128', '3des', and<br> |
| 'rc4'. If these settings are used with a client handshake, they<br> |
| determine the order of the ciphersuites offered in the ClientHello<br> |
| message.<br> |
| <br> |
| If these settings are used with a server handshake, the server will<br> |
| choose whichever ciphersuite matches the earliest entry in this<br> |
| list.<br> |
| <br> |
| NOTE: If '3des' is used in this list, but TLS Lite can't find an<br> |
| add-on library that supports 3DES, then '3des' will be silently<br> |
| removed.<br> |
| <br> |
| The default value is ['aes256', 'aes128', '3des', 'rc4'].<br> |
| <br> |
| @type certificateTypes: list<br> |
| @ivar certificateTypes: The allowed certificate types, in order of<br> |
| preference.<br> |
| <br> |
| The allowed values in this list are 'x509' and 'cryptoID'. This<br> |
| list is only used with a client handshake. The client will<br> |
| advertise to the server which certificate types are supported, and<br> |
| will check that the server uses one of the appropriate types.<br> |
| <br> |
| NOTE: If 'cryptoID' is used in this list, but cryptoIDlib is not<br> |
| installed, then 'cryptoID' will be silently removed.<br> |
| <br> |
| @type minVersion: tuple<br> |
| @ivar minVersion: The minimum allowed SSL/TLS version.<br> |
| <br> |
| This variable can be set to (3,0) for SSL 3.0, (3,1) for<br> |
| TLS 1.0, or (3,2) for TLS 1.1. If the other party wishes to<br> |
| use a lower version, a protocol_version alert will be signalled.<br> |
| The default is (3,0).<br> |
| <br> |
| @type maxVersion: tuple<br> |
| @ivar maxVersion: The maximum allowed SSL/TLS version.<br> |
| <br> |
| This variable can be set to (3,0) for SSL 3.0, (3,1) for<br> |
| TLS 1.0, or (3,2) for TLS 1.1. If the other party wishes to<br> |
| use a higher version, a protocol_version alert will be signalled.<br> |
| The default is (3,2). (WARNING: Some servers may (improperly)<br> |
| reject clients which offer support for TLS 1.1. In this case,<br> |
| try lowering maxVersion to (3,1)).<br> </tt></td></tr> |
| <tr><td> </td> |
| <td width="100%">Methods defined here:<br> |
| <dl><dt><a name="HandshakeSettings-__init__"><strong>__init__</strong></a>(self)</dt></dl> |
| |
| </td></tr></table></td></tr></table> |
| </body></html> |