Package org.zaproxy.zap.extension.pscan
Class PassiveScanThread
- java.lang.Object
-
- java.lang.Thread
-
- org.zaproxy.zap.extension.pscan.PassiveScanThread
-
- All Implemented Interfaces:
java.lang.Runnable
@Deprecated public class PassiveScanThread extends java.lang.Thread
Deprecated.(2.12.0) UsePassiveScanController
instead.
-
-
Field Summary
Fields Modifier and Type Field Description static int
PROXY_LISTENER_ORDER
Deprecated.
-
Constructor Summary
Constructors Constructor Description PassiveScanThread(PassiveScanTaskHelper helper, HistoryReference href)
Deprecated.Constructs aPassiveScanThread
with the given data.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static void
addApplicableHistoryType(int type)
Deprecated.Add the History Type (int
) to the set of applicable history types.void
addTag(int id, java.lang.String tag)
Deprecated.(2.11.0) UseaddTag(String)
instead, the id is not used.void
addTag(java.lang.String tag)
Deprecated.Adds the given tag to the message being passive scanned.static java.util.Set<java.lang.Integer>
getApplicableHistoryTypes()
Deprecated.Returns the full set (both default and "opted-in") which are to be applicable for passive scanning.java.lang.String
getCurrentRuleName()
Deprecated.long
getCurrentRuleStartTime()
Deprecated.java.lang.String
getCurrentUrl()
Deprecated.static java.util.Set<java.lang.Integer>
getOptedInHistoryTypes()
Deprecated.Returns the set of History Types which have "opted-in" to be applicable for passive scanning.void
raiseAlert(int id, Alert alert)
Deprecated.static void
removeApplicableHistoryType(int type)
Deprecated.Remove the History Type (int
) from the set of applicable history types.void
run()
Deprecated.-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-
-
-
Field Detail
-
PROXY_LISTENER_ORDER
public static final int PROXY_LISTENER_ORDER
Deprecated.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PassiveScanThread
public PassiveScanThread(PassiveScanTaskHelper helper, HistoryReference href)
Deprecated.Constructs aPassiveScanThread
with the given data.- Parameters:
helper
- the helper classhref
- the history reference being acted upon- Since:
- 2.12.0
-
-
Method Detail
-
run
public void run()
Deprecated.- Specified by:
run
in interfacejava.lang.Runnable
- Overrides:
run
in classjava.lang.Thread
-
raiseAlert
public void raiseAlert(int id, Alert alert)
Deprecated.
-
addTag
@Deprecated public void addTag(int id, java.lang.String tag)
Deprecated.(2.11.0) UseaddTag(String)
instead, the id is not used.Adds the given tag to the message being passive scanned.- Parameters:
id
- not used.tag
- the name of the tag.
-
addTag
public void addTag(java.lang.String tag)
Deprecated.Adds the given tag to the message being passive scanned.- Parameters:
tag
- the name of the tag.- Since:
- 2.11.0
-
addApplicableHistoryType
public static void addApplicableHistoryType(int type)
Deprecated.Add the History Type (int
) to the set of applicable history types.- Parameters:
type
- the type to be added to the set of applicable history types- Since:
- 2.8.0
-
removeApplicableHistoryType
public static void removeApplicableHistoryType(int type)
Deprecated.Remove the History Type (int
) from the set of applicable history types.- Parameters:
type
- the type to be removed from the set of applicable history types- Since:
- 2.8.0
-
getOptedInHistoryTypes
public static java.util.Set<java.lang.Integer> getOptedInHistoryTypes()
Deprecated.Returns the set of History Types which have "opted-in" to be applicable for passive scanning.- Returns:
- a set of
Integer
representing all of the History Types which have "opted-in" for passive scanning. - Since:
- 2.8.0
-
getApplicableHistoryTypes
public static java.util.Set<java.lang.Integer> getApplicableHistoryTypes()
Deprecated.Returns the full set (both default and "opted-in") which are to be applicable for passive scanning.- Returns:
- a set of
Integer
representing all of the History Types which are applicable for passive scanning. - Since:
- 2.8.0
-
getCurrentRuleName
public java.lang.String getCurrentRuleName()
Deprecated.
-
getCurrentUrl
public java.lang.String getCurrentUrl()
Deprecated.
-
getCurrentRuleStartTime
public long getCurrentRuleStartTime()
Deprecated.
-
-