«{@link #END}» // key gets destroyed |
*
*/
- final AtomicLong outstandingCryptors;
+ private final AtomicLong outstandingCryptors;
private static final long START = combine(1, 1);
private static final long END = combine(-1, -1);
diff --git a/kroxylicious-filters/kroxylicious-encryption/src/main/java/io/kroxylicious/filter/encryption/dek/Wrapping96BitCounter.java b/kroxylicious-filters/kroxylicious-encryption/src/main/java/io/kroxylicious/filter/encryption/dek/Wrapping96BitCounter.java
index 9333b8eb63..9d9c21a468 100644
--- a/kroxylicious-filters/kroxylicious-encryption/src/main/java/io/kroxylicious/filter/encryption/dek/Wrapping96BitCounter.java
+++ b/kroxylicious-filters/kroxylicious-encryption/src/main/java/io/kroxylicious/filter/encryption/dek/Wrapping96BitCounter.java
@@ -11,6 +11,8 @@
import javax.annotation.concurrent.NotThreadSafe;
import javax.security.auth.Destroyable;
+import io.kroxylicious.proxy.tag.VisibleForTesting;
+
import edu.umd.cs.findbugs.annotations.NonNull;
/**
@@ -40,6 +42,7 @@ class Wrapping96BitCounter implements Destroyable {
hi = rng.nextInt();
}
+ @VisibleForTesting
int sizeBytes() {
return 12;
}
diff --git a/kroxylicious-filters/kroxylicious-encryption/src/main/java/io/kroxylicious/filter/encryption/inband/InBandEncryptionManager.java b/kroxylicious-filters/kroxylicious-encryption/src/main/java/io/kroxylicious/filter/encryption/inband/InBandEncryptionManager.java
index eae77639d6..83e969ebc0 100644
--- a/kroxylicious-filters/kroxylicious-encryption/src/main/java/io/kroxylicious/filter/encryption/inband/InBandEncryptionManager.java
+++ b/kroxylicious-filters/kroxylicious-encryption/src/main/java/io/kroxylicious/filter/encryption/inband/InBandEncryptionManager.java
@@ -31,6 +31,7 @@
import io.kroxylicious.filter.encryption.dek.ExhaustedDekException;
import io.kroxylicious.filter.encryption.records.RecordStream;
import io.kroxylicious.kms.service.Serde;
+import io.kroxylicious.proxy.tag.VisibleForTesting;
import edu.umd.cs.findbugs.annotations.NonNull;
@@ -95,7 +96,7 @@ public InBandEncryptionManager(@NonNull Serde