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 {
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);

View File

@ -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;
}
}