AppSensor DetectionPoint CIE4

Here is some sample code that can be used to detect CIE4.

String myInputParameter = ...;

//the execution of this line will create an exception if an attack is found boolean isParamSafe = AttackDetectorUtils.verifyCarriageReturnOrLineFeedDoesNotExist(myInputParameter); if (! isParamSafe) { notify user ... ??? }