What justifications do the Alien and Sedition Acts contain for these measures aimed primarily at the press?

What justifications do the Alien and Sedition Acts contain for these measures aimed primarily at the press?