Class Session
source code
This class represents a TLS session.
TLS distinguishes between connections and sessions. A new handshake
creates both a connection and a session. Data is transmitted over the
connection.
The session contains a more permanent record of the handshake. The
session can be inspected to determine handshake results. The session can
also be used to create a new connection through "session
resumption". If the client and server both support this, they can
create a new connection based on an old session without the overhead of a
full handshake.
The session for a tlslite.TLSConnection.TLSConnection can be retrieved
from the connection's 'session' attribute.
|
|
|
|
|
|
|
create(self,
masterSecret,
sessionID,
cipherSuite,
srpUsername,
clientCertChain,
serverCertChain,
tackExt,
resumable=True) |
source code
|
|
|
|
str
|
|
|
|
bool
|
|
Get the name of the cipher used with this connection.
- Returns: str
- The name of the cipher used with this connection. Either
'aes128', 'aes256', 'rc4', or '3des'.
|
If this session can be used for session resumption.
- Returns: bool
- If this session can be used for session resumption.
|