@Test public void shouldForbidUnknownClassOnEmptyWhitelist() { assertThat(validator.validate(SOME_CLASS)).isFalse(); }
@Override public boolean validate(String className) { if (className == null || className.trim().isEmpty()) { return true; } return isPackageAllowed(className) || isClassNameAllowed(className); }
DefaultDeserializationTypeValidator implements WhitelistingDeserializationTypeValidator { @Override public boolean validate(String className) { if (className == null || className.trim().isEmpty()) { return true; } return isPackageAllowed(className) || isClassNameAllowed(className); } }
DefaultDeserializationTypeValidator implements WhitelistingDeserializationTypeValidator { @Override public boolean validate(String className) { if (className == null || className.trim().isEmpty()) { return true; } return isPackageAllowed(className) || isClassNameAllowed(className); }  }
DefaultDeserializationTypeValidator implements WhitelistingDeserializationTypeValidator { @Override public boolean validate(String className) { if (className == null || className.trim().isEmpty()) { return true; } return isPackageAllowed(className) || isClassNameAllowed(className); }  @Override void setAllowedClasses(String deserializationAllowedClasses); @Override void setAllowedPackages(String deserializationAllowedPackages); @Override boolean validate(String className); }
DefaultDeserializationTypeValidator implements WhitelistingDeserializationTypeValidator { @Override public boolean validate(String className) { if (className == null || className.trim().isEmpty()) { return true; } return isPackageAllowed(className) || isClassNameAllowed(className); }  @Override void setAllowedClasses(String deserializationAllowedClasses); @Override void setAllowedPackages(String deserializationAllowedPackages); @Override boolean validate(String className);  }