Uses Byte Buddy to override the behavior of
NOTE: This is a demo, not a real security implementation. For example,
System.getSecurityManager isn't intercepted!
mvn clean compile package
A little awkward. I don't know how to get Maven exec to do anything useful. Note that the intercepter has to be on the bootstrap classpath, so it must be packaged seperately from the agent:
java -javaagent:agent/target/securityfixer-agent-1.0-SNAPSHOT.jar=bootstrap/target/securityfixer-bootstrap-1.0-SNAPSHOT.jar securityfixer.Main