def METHOD_NAME(self, system_id, action_id, scap_file):
    self.auth_system(system_id)
    self._authorize_request(action_id)
    required_keys = ['filename', 'filecontent', 'content-encoding']
    for k in required_keys:
        if k not in scap_file:
            log_debug(1, self.server_id, "The scap file data is invalid or incomplete: %s" % scap_file)
            raise rhnFault(5101, "Missing or invalid key: %s" % k)
    return self._store_file(action_id, scap_file)