Module Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad keyword TupleLoad keyword Dict Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Str attr AttributeLoad NameLoad attr While NameLoad body TryExcept body Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Break ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Str attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Num Num AttributeLoad AttributeLoad NameLoad attr attr Str orelse TryExcept body Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If NameLoad body Assign NameStore NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Call NameLoad NameLoad ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad If CompareGt Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Str attr Call NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Slice Num Index Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Num Assign NameStore Str While CompareLt NameLoad NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad BinOpSub NameLoad NameLoad AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Break orelse If CompareEq Call NameLoad NameLoad Num body Raise Call AttributeLoad NameLoad attr orelse AugAssignAdd NameStore Call NameLoad NameLoad AugAssignAdd NameStore NameLoad If CompareNotEq NameLoad NameLoad body Raise Call NameLoad Str orelse Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareGt Call NameLoad NameLoad Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad decorator_list decorator_list
N/A N/A logging N/A socket N/A struct N/A threading kmip.core enums kmip.core exceptions kmip.core.messages contents kmip.core.messages messages kmip.core utils KmipSession N/A N/A threading Thread N/A N/A 
    A session thread representing a single KMIP client/server interaction.
     __init__ N/A N/A self engine connection name N/A None N/A N/A 
        Create a KmipSession.

        Args:
            engine (KmipEngine): A reference to the central server application
                that handles message processing. Required.
            connection (socket): A client socket.socket TLS connection
                representing a new KMIP connection. Required.
            name (str): The name of the KmipSession. Optional, defaults to
                None.
         N/A N/A N/A N/A super KmipSession self __init__ group None target None name name args N/A kwargs N/A N/A N/A self _logger N/A N/A logging getLogger N/A N/A kmip.server.session.{0} format N/A self name N/A N/A self _engine engine N/A N/A self _connection connection N/A N/A self _max_buffer_size 4096 N/A N/A self _max_request_size 1048576 N/A N/A self _max_response_size 1048576 N/A run N/A N/A self N/A N/A N/A 
        The main thread routine executed by invoking thread.start.

        This method manages the new client connection, running a message
        handling loop. Once this method completes, the thread is finished.
         N/A N/A N/A N/A self _logger info N/A N/A Starting session: {0} format N/A self name N/A True N/A N/A N/A N/A N/A N/A self _handle_message_loop N/A N/A N/A N/A exceptions ConnectionClosed N/A e N/A N/A N/A N/A Exception N/A e N/A N/A N/A N/A N/A self _logger info Failure handling message loop N/A N/A N/A N/A self _logger exception e N/A N/A N/A N/A self _connection shutdown N/A socket SHUT_RDWR N/A N/A N/A N/A self _connection close N/A N/A N/A N/A self _logger info N/A N/A Stopping session: {0} format N/A self name N/A _handle_message_loop N/A N/A self N/A N/A N/A request_data N/A N/A self _receive_request N/A request N/A N/A messages RequestMessage N/A max_size N/A self _max_response_size N/A N/A N/A N/A N/A request read request_data N/A N/A N/A Exception N/A e N/A N/A N/A N/A N/A self _logger warning Failure parsing request message. N/A N/A N/A N/A self _logger exception e N/A response N/A N/A N/A self _engine build_error_response N/A N/A N/A contents ProtocolVersion create 1 0 N/A N/A enums ResultReason INVALID_MESSAGE Error parsing request message. See server logs for more information. N/A N/A N/A N/A N/A response max_response_size N/A N/A N/A self _engine process_request request N/A max_response_size N/A N/A max_size max_response_size N/A N/A N/A N/A exceptions KmipError N/A e N/A N/A response N/A N/A N/A self _engine build_error_response N/A N/A request request_header protocol_version N/A e reason N/A str e N/A N/A Exception N/A e N/A N/A N/A N/A N/A self _logger warning An unexpected error occurred while processing request. N/A N/A N/A N/A self _logger exception e N/A response N/A N/A N/A self _engine build_error_response N/A N/A request request_header protocol_version N/A N/A enums ResultReason GENERAL_FAILURE An unexpected error occurred while processing request. See server logs for more information. N/A response_data N/A N/A utils BytearrayStream N/A N/A N/A response write response_data N/A N/A N/A len response_data max_size N/A N/A N/A N/A N/A self _logger warning N/A N/A Response message length too large: {0} bytes, max {1} bytes format N/A len response_data N/A self _max_response_size N/A response N/A N/A N/A self _engine build_error_response N/A N/A request request_header protocol_version N/A N/A enums ResultReason RESPONSE_TOO_LARGE Response message length too large. See server logs for more information. N/A response_data N/A N/A utils BytearrayStream N/A N/A N/A response write response_data N/A N/A N/A self _send_response N/A response_data buffer N/A _receive_request N/A N/A self N/A N/A N/A header N/A N/A self _receive_bytes 8 N/A message_size N/A N/A N/A struct unpack !I N/A header N/A 4 N/A 0 N/A payload N/A N/A self _receive_bytes message_size N/A data N/A N/A utils BytearrayStream N/A header payload N/A data N/A _receive_bytes N/A N/A self message_size N/A N/A N/A bytes_received 0 N/A message N/A N/A bytes_received message_size N/A N/A partial_message N/A N/A N/A self _connection recv N/A min N/A message_size bytes_received N/A self _max_buffer_size N/A N/A partial_message None N/A N/A N/A N/A N/A N/A len partial_message 0 N/A N/A N/A N/A exceptions ConnectionClosed N/A N/A bytes_received N/A len partial_message N/A message partial_message N/A N/A bytes_received message_size N/A N/A N/A ValueError Invalid KMIP message received. Actual message length does not match the advertised header length. N/A N/A message N/A _send_response N/A N/A self data N/A N/A N/A N/A N/A len data 0 N/A N/A N/A N/A N/A self _connection sendall N/A bytes data N/A N/A