Misc cleanup

This commit is contained in:
Oracle 2026-04-29 16:59:33 +02:00
parent 9b5fa56215
commit 084ce14451
Signed by: Oracle
SSH key fingerprint: SHA256:x4/RtnjUyuHkdvmwNDsWSfcfF1V5PNr3OpriZqOvCX8
17 changed files with 101 additions and 620 deletions

View file

@ -10,6 +10,7 @@ import java.util.Map;
/**
* Cross-platform memory locking and secure zeroing for sensitive cryptographic buffers. Fails gracefully if unavailable.
*/
@SuppressWarnings("SameReturnValue")
public final class SecureMemory {
@Getter
@ -75,6 +76,7 @@ public final class SecureMemory {
/**
* Wraps bytes with memory locking and guaranteed zeroing on close. AutoCloseable for try-with-resources.
*/
@SuppressWarnings("SameReturnValue")
public static class SecureBuffer implements AutoCloseable {
private final Arena arena;