def supportsInterface(self, interface):
        """
        Returns whether a particular credentials interface is supported.
        """
        return (self.supportedInterfaces is None
                or interface in self.supportedInterfaces)

        Returns whether a particular credentials interface is supported.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/cred/strcred.py