def response_for(self, start):
        if as_bytes(PlainCredentials.TYPE) not in\
                as_bytes(start.mechanisms).split():
            return None, None
        return (PlainCredentials.TYPE,
                b'\0' + as_bytes(self.username) +
                b'\0' + as_bytes(self.password))
Validate that this type of authentication is supported
dataset/ETHPy150Open pika/pika/pika/credentials.py/PlainCredentials.response_for