Apple isn't alone.
The tech giant is dominating the headlines in a standoff over whether to help the FBI access the locked, encrypted iPhone of one of the San Bernardino terrorists.
But this case is just one example of the broader tension that has erupted between tech companies and the Justice Department across a range of national security and criminal issues.
For example, Microsoft's CEO Satya Nadella is fighting the DOJ in a drug-trafficking case. The government is trying to force Microsoft to turn over emails stored in data centers in Ireland as part of the investigation.
Microsoft contends that emails stored in the cloud belong to the customer, with the same privacy protection as paper letters sent by mail. Brad Smith, Microsoft's chief legal officer, has also argued that the U.S. government must have a warrant, but a search warrant cannot reach beyond U.S. shores.
In other words, according to Microsoft, the DOJ is exceeding its authority. The company told CNBC it is willing to take the battle to the Supreme Court if necessary.