(1) by virtue of process issued by a court or judge in a case where such court or judge has jurisdiction; or
(2) by virtue of a warrant or final judgment or decree of any competent court of criminal jurisdiction, or of any process issued upon such warrant, judgment or decree.