def get_method(self, cls_name):
        """
        Generator that returns all registered authenticators based on a
        specific authentication class.

        :param acr: Authentication Class
        :return: generator
        """
        for id, spec in self.db.items():
            if spec["method"].__class__.__name__ == cls_name:
                yield spec["method"]
def get_method ( self , cls_name ) : for id , spec in self . db . items ( ) : if spec [ "method" ] . __class__ . __name__ == cls_name : yield spec [ "method" ]
Generator that returns all registered authenticators based on a
        specific authentication class.

        :param acr: Authentication Class
        :return: generator