Skip to content

Commit

Permalink
fix: update unimplemented methods (#336)
Browse files Browse the repository at this point in the history
  • Loading branch information
ManasC478 authored Sep 20, 2024
1 parent 6dd7e4c commit 217f881
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import java.util.List;
import java.util.Locale;
import java.util.logging.Logger;
import java.util.stream.Collectors;

import static java.util.logging.Level.FINE;
import static java.util.logging.Level.INFO;
Expand Down Expand Up @@ -169,6 +170,6 @@ public List<String> getWindow(ClientSecurity client) throws InvalidKeyException,
logger.log(SEVERE, "Failed to encrypt bundleID: " + ueb.bundleId, e);
}
return null;
}).toList();
}).collect(Collectors.toList());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
import java.util.concurrent.TimeUnit;
import java.util.function.BiConsumer;
import java.util.logging.Logger;
import java.util.stream.Collectors;

import static net.discdd.bundlesecurity.DDDPEMEncoder.ECPrivateKeyType;
import static net.discdd.bundlesecurity.DDDPEMEncoder.ECPublicKeyType;
Expand Down Expand Up @@ -171,7 +172,7 @@ protected static Path createBundleForAdus(List<Long> aduIds, String clientId, in
e.printStackTrace();
}
return new ADU(aduFile, TEST_APPID, aduId, aduFile.length(), clientId);
}).toList();
}).collect(Collectors.toList());
BundleUtils.createBundlePayloadForAdus(adus, "{}".getBytes(), "HB", baos);
String bundleId = BundleIDGenerator.generateBundleID(clientId, bundleCount, BundleIDGenerator.UPSTREAM);
String encryptedBundleID = encryptBundleID(bundleId);
Expand Down

0 comments on commit 217f881

Please sign in to comment.