import hudson.remoting.Callable;

/**
 * Trivial callable used only to construct a valid hudson.remoting.UserRequest on the agent
 * (the constructor serializes this locally and exports the agent classloader). Its serialized
 * bytes are replaced with the spoofed payload bytes before the request is sent, so this
 * callable never executes anywhere.
 */
public class DummyCallable implements Callable<String, RuntimeException> {
    private static final long serialVersionUID = 1L;

    @Override
    public void checkRoles(org.jenkinsci.remoting.RoleChecker checker) {
        // no-op
    }

    @Override
    public String call() {
        return "dummy";
    }
}
