Typo in Base64StringKeyGenerator exception message

Signed-off-by: James Howe <675056+OrangeDog@users.noreply.github.com>
This commit is contained in:
James Howe 2025-04-02 16:38:13 +01:00 committed by Josh Cummings
parent f93a7a2f85
commit 8d7f6acab6

View File

@ -68,7 +68,7 @@ public class Base64StringKeyGenerator implements StringKeyGenerator {
throw new IllegalArgumentException("encode cannot be null"); throw new IllegalArgumentException("encode cannot be null");
} }
if (keyLength < DEFAULT_KEY_LENGTH) { if (keyLength < DEFAULT_KEY_LENGTH) {
throw new IllegalArgumentException("keyLength must be greater than or equal to" + DEFAULT_KEY_LENGTH); throw new IllegalArgumentException("keyLength must be greater than or equal to " + DEFAULT_KEY_LENGTH);
} }
this.encoder = encoder; this.encoder = encoder;
this.keyGenerator = KeyGenerators.secureRandom(keyLength); this.keyGenerator = KeyGenerators.secureRandom(keyLength);