Magnetic properties of a superconductor of the second kind