@ -67,8 +68,8 @@ public class Base64StringKeyGenerator implements StringKeyGenerator {
@@ -67,8 +68,8 @@ public class Base64StringKeyGenerator implements StringKeyGenerator {
if(encoder==null){
thrownewIllegalArgumentException("encode cannot be null");
}
if(keyLength<DEFAULT_KEY_LENGTH){
thrownewIllegalArgumentException("keyLength must be greater than or equal to "+DEFAULT_KEY_LENGTH);
if(keyLength<=0){
thrownewIllegalArgumentException("keyLength must be greater than 0");