Created
August 2, 2017 23:11
Revisions
-
hoomanb1 created this gist
Aug 2, 2017 .There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ protected Class<?> resolveClass(ObjectStreamClass desc) throws IOException, ClassNotFoundException { String name = desc.getName(); if(isBlacklisted(name) ) { throw new SecurityException("Deserialization is blocked for security reasons"); } if(isWhitelisted(name) ) { throw new SecurityException("Deserialization is blocked for security reasons"); } return super.resolveClass(desc); }