public class JndiLdapInjectionSource extends Object implements InjectionSource
| Constructor and Description |
|---|
JndiLdapInjectionSource() |
| Modifier and Type | Method and Description |
|---|---|
InjectionPoint |
getInjectableParameters(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.
|
boolean |
isCandidate(org.apache.bcel.generic.ConstantPoolGen cpg)
Before starting intensive analysis on variable flow and iterating on every instruction,
this function will make sure the injection type can occurs in the current class base on
its constant pool gen.
|
public boolean isCandidate(org.apache.bcel.generic.ConstantPoolGen cpg)
InjectionSourceisCandidate in interface InjectionSourcepublic InjectionPoint getInjectableParameters(org.apache.bcel.generic.InvokeInstruction ins, org.apache.bcel.generic.ConstantPoolGen cpg, org.apache.bcel.generic.InstructionHandle insHandle)
InjectionSourcegetInjectableParameters in interface InjectionSourceins - 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)Copyright © 2015. All rights reserved.