def _x_start_ok(self, client_properties, mechanism, response, locale):
if self.server_capabilities.get('<STR_LIT>'):<EOL><INDENT>if '<STR_LIT>' not in client_properties:<EOL><INDENT>client_properties['<STR_LIT>'] = {}<EOL><DEDENT>client_properties['<STR_LIT>']['<STR_LIT>'] = True<EOL><DEDENT>if self.server_capabilities.get('<STR_LIT>'):<EOL><INDENT>if '<STR_LIT>' not in client_properties:<EOL><INDENT>client_properties['<STR_LIT>'] = {}<EOL><DEDENT>client_properties['<STR_LIT>']['<STR_LIT>'] = True<EOL><DEDENT>args = AMQPWriter()<EOL>args.write_table(client_properties)<EOL>args.write_shortstr(mechanism)<EOL>args.write_longstr(response)<EOL>args.write_shortstr(locale)<EOL>self._send_method((<NUM_LIT:10>, <NUM_LIT:11>), args)<EOL>
Select security mechanism and locale

        This method selects a SASL security mechanism. ASL uses SASL
        (RFC2222) to negotiate authentication and encryption.

        PARAMETERS:
            client_properties: table

                client properties

            mechanism: shortstr

                selected security mechanism

                A single security mechanisms selected by the client,
                which must be one of those specified by the server.

                RULE:

                    The client SHOULD authenticate using the highest-
                    level security profile it can handle from the list
                    provided by the server.

                RULE:

                    The mechanism field MUST contain one of the
                    security mechanisms proposed by the server in the
                    Start method. If it doesn't, the server MUST close
                    the socket.

            response: longstr

                security response data

                A block of opaque data passed to the security
                mechanism. The contents of this data are defined by
                the SASL security mechanism.  For the PLAIN security
                mechanism this is defined as a field table holding two
                fields, LOGIN and PASSWORD.

            locale: shortstr

                selected message locale

                A single message local selected by the client, which
                must be one of those specified by the server.