Switch to byte array.

// FREEBIE
This commit is contained in:
Moxie Marlinspike 2014-08-04 14:31:41 -07:00
parent 58d101ff2e
commit a95cc0eba2
2 changed files with 6 additions and 6 deletions

View File

@ -62,7 +62,7 @@ public class JobManagerTest extends AndroidTestCase {
} }
public void testEncryptedJobExecuton() throws InterruptedException { public void testEncryptedJobExecuton() throws InterruptedException {
EncryptionKeys keys = new EncryptionKeys("foobar"); EncryptionKeys keys = new EncryptionKeys(new byte[30]);
PersistentMockRequirement requirement = new PersistentMockRequirement(); PersistentMockRequirement requirement = new PersistentMockRequirement();
PersistentTestJob testJob = new PersistentTestJob(requirement, keys); PersistentTestJob testJob = new PersistentTestJob(requirement, keys);
JobManager jobManager = new JobManager(getContext(), "persistent-requirement-test4", null, new JavaJobSerializer(getContext()), 1); JobManager jobManager = new JobManager(getContext(), "persistent-requirement-test4", null, new JavaJobSerializer(getContext()), 1);

View File

@ -2,13 +2,13 @@ package org.whispersystems.jobqueue;
public class EncryptionKeys { public class EncryptionKeys {
private transient final String keys; private transient final byte[] encoded;
public EncryptionKeys(String keys) { public EncryptionKeys(byte[] encoded) {
this.keys = keys; this.encoded = encoded;
} }
public String getKeys() { public byte[] getEncoded() {
return keys; return encoded;
} }
} }