Class RedirectionSource
- java.lang.Object
-
- com.h3xstream.findsecbugs.injection.redirect.RedirectionSource
-
- All Implemented Interfaces:
InjectionSource
public class RedirectionSource extends Object implements InjectionSource
-
-
Constructor Summary
Constructors Constructor Description RedirectionSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InjectionPointgetInjectableParameters(org.apache.bcel.generic.InvokeInstruction ins, org.apache.bcel.generic.ConstantPoolGen cpg, org.apache.bcel.generic.InstructionHandle insHandle)The implementation should identify method that are susceptible to injection and return parameters index that can injected.
-
-
-
Method Detail
-
getInjectableParameters
public InjectionPoint getInjectableParameters(org.apache.bcel.generic.InvokeInstruction ins, org.apache.bcel.generic.ConstantPoolGen cpg, org.apache.bcel.generic.InstructionHandle insHandle)
Description copied from interface:InjectionSourceThe implementation should identify method that are susceptible to injection and return parameters index that can injected.- Specified by:
getInjectableParametersin interfaceInjectionSource- Parameters:
ins- Instruction visitcpg- ConstantPool (needed to find the class name and method name associate to instruction)insHandle- instruction handle (needed to look at the instruction around the current instruction)- Returns:
- Precision about the parameter at risk for the current instruction visit. (InjectionPoint.NONE when the method is safe)
-
-