From 9fa510fa9d475ca2bfd4809ab68e720ed3e95fc7 Mon Sep 17 00:00:00 2001 From: Raghuraman Ramaswamy Date: Mon, 29 May 2023 15:13:01 +0530 Subject: [PATCH] making check method protected Making check method protected. This is for https://github.com/idealista/format-preserving-encryption-java/issues/15 --- src/main/java/com/idealista/fpe/FormatPreservingEncryption.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/idealista/fpe/FormatPreservingEncryption.java b/src/main/java/com/idealista/fpe/FormatPreservingEncryption.java index 7ccf1ee..4a8dfcd 100644 --- a/src/main/java/com/idealista/fpe/FormatPreservingEncryption.java +++ b/src/main/java/com/idealista/fpe/FormatPreservingEncryption.java @@ -37,7 +37,7 @@ public String decrypt(String cipherText, byte[] tweak) { return selectedDomain.transform(numeralPlainText); } - private void check(String text, byte[] tweak) { + protected void check(String text, byte[] tweak) { if (text == null || tweak == null) throw new IllegalArgumentException(NULL_INPUT.toString());