avro
avro copied to clipboard
[java] Refactor java class deserialization checks
What is the purpose of the change
This PR refactors the Java class deserialization checks into a separate class and applies the security checks on all deserialization paths.
Verifying this change
This change added tests and can be verified as follows:
- Added unit tests to validate that permitted classes are allowed to deserialized, and that unpermitted classes are not
- Tests validate both
SERIALIZABLE_PACKAGESandSERIALIZABLE_CLASSES
Documentation
No new features.
This might be obsolete now with https://github.com/apache/avro/pull/3525