SecureRestCommand moved here.