mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-24 16:57:50 +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 {
|
||||
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);
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user