'Is credential_id authorised to access resource by resource_name.'

def access_allowed(self, credential_id, resource_name):

    if (not self.resources):
        return False
    handler = self._access_allowed_handlers.get(credential_id)
    return (handler and handler(resource_name))
