Apple is not using any laws here at the moment at least in the US. Jail-breaking got granted an exception from the DMCA by the library of congress. What apple is using cryptography. Basically, the cryptography gives Apple an extralegal means to enforce whatever it wants.
Also side note: I suggest you read this post/response I posted a while a ago: https://news.ycombinator.com/item?id=39349288