mirror of
https://github.com/oxen-io/session-android.git
synced 2025-01-11 22:13:38 +00:00
Switch to byte array.
// FREEBIE
This commit is contained in:
parent
58d101ff2e
commit
a95cc0eba2
@ -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);
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user