On the Confinement of a Plasma by Magnetostatic Fields