1.2.3 TCPAuthenticationContext Constructors

send_auth (sock, cprinc, sprinc[, options])
Begin a Kerberos authorization sequence (typically performed on the client). For the operation to complete, the corresponding server (on the other end of sock, a connected socket object) must do a corresponding recv_auth(). sock may be a Python socket object or an int object corresponding to sock.fileno(). cprinc and sprinc are the client and server Principal objects respectively. Subsequent calls to block read/write methods implicitly use sock for transport. The authentication context object is returned upon successful validation of the client and server principals

recv_auth (sock, sprinc)
Complete a Kerberos authorization sequence (typically performed on the server). recv_auth() blocks until a corresponding send_auth() is issued by the peer on the client end of the connected sock. sprinc is the server principal (for yourself). The authentication context object is returned upon successful validation of the client (read from sock) and server principals.

TCPAuthenticationContextType
Type of the Authentication Context object returned by send_auth() and recv_auth().