Skip to content

Commit

Permalink
Switch to byte array.
Browse files Browse the repository at this point in the history
// FREEBIE
  • Loading branch information
moxie0 committed Oct 21, 2014
1 parent 58d101f commit a95cc0e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public void testPersistentJobExecuton() throws InterruptedException {
}

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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

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

0 comments on commit a95cc0e

Please sign in to comment.