diff --git a/jobqueue/src/androidTest/java/org/whispersystems/jobqueue/JobManagerTest.java b/jobqueue/src/androidTest/java/org/whispersystems/jobqueue/JobManagerTest.java index 92c6d14dfa..448cfb4fa9 100644 --- a/jobqueue/src/androidTest/java/org/whispersystems/jobqueue/JobManagerTest.java +++ b/jobqueue/src/androidTest/java/org/whispersystems/jobqueue/JobManagerTest.java @@ -62,7 +62,7 @@ public class JobManagerTest extends AndroidTestCase { } public void testEncryptedJobExecuton() throws InterruptedException { - EncryptionKeys keys = new EncryptionKeys("foobar"); + EncryptionKeys keys = new EncryptionKeys(new byte[30]); PersistentMockRequirement requirement = new PersistentMockRequirement(); PersistentTestJob testJob = new PersistentTestJob(requirement, keys); JobManager jobManager = new JobManager(getContext(), "persistent-requirement-test4", null, new JavaJobSerializer(getContext()), 1); diff --git a/jobqueue/src/main/java/org/whispersystems/jobqueue/EncryptionKeys.java b/jobqueue/src/main/java/org/whispersystems/jobqueue/EncryptionKeys.java index f414543e01..bdfe608729 100644 --- a/jobqueue/src/main/java/org/whispersystems/jobqueue/EncryptionKeys.java +++ b/jobqueue/src/main/java/org/whispersystems/jobqueue/EncryptionKeys.java @@ -2,13 +2,13 @@ package org.whispersystems.jobqueue; public class EncryptionKeys { - private transient final String keys; + private transient final byte[] encoded; - public EncryptionKeys(String keys) { - this.keys = keys; + public EncryptionKeys(byte[] encoded) { + this.encoded = encoded; } - public String getKeys() { - return keys; + public byte[] getEncoded() { + return encoded; } }