Package org.sonar.python.checks.hotspots
Class HttpOnlyCookieCheck
- java.lang.Object
-
- org.sonar.plugins.python.api.PythonSubscriptionCheck
-
- org.sonar.python.checks.hotspots.AbstractCookieFlagCheck
-
- org.sonar.python.checks.hotspots.HttpOnlyCookieCheck
-
- All Implemented Interfaces:
PythonCheck,SubscriptionCheck
public class HttpOnlyCookieCheck extends AbstractCookieFlagCheck
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.sonar.plugins.python.api.PythonCheck
PythonCheck.CheckScope, PythonCheck.PreciseIssue
-
Nested classes/interfaces inherited from interface org.sonar.plugins.python.api.SubscriptionCheck
SubscriptionCheck.Context
-
-
Field Summary
Fields Modifier and Type Field Description static StringHEADERS_ARGUMENT_NAMEstatic StringHTTPONLY_ARGUMENT_NAMEstatic StringSET_COOKIE_METHOD_NAME
-
Constructor Summary
Constructors Constructor Description HttpOnlyCookieCheck()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringheaderValueRegex()voidinitialize(SubscriptionCheck.Context context)-
Methods inherited from class org.sonar.python.checks.hotspots.AbstractCookieFlagCheck
isInvalidHeaderArgument
-
Methods inherited from class org.sonar.plugins.python.api.PythonSubscriptionCheck
leaveFile, scanFile
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.sonar.plugins.python.api.PythonCheck
scanWithoutParsing, scope
-
-
-
-
Field Detail
-
HTTPONLY_ARGUMENT_NAME
public static final String HTTPONLY_ARGUMENT_NAME
- See Also:
- Constant Field Values
-
HEADERS_ARGUMENT_NAME
public static final String HEADERS_ARGUMENT_NAME
- See Also:
- Constant Field Values
-
SET_COOKIE_METHOD_NAME
public static final String SET_COOKIE_METHOD_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
initialize
public void initialize(SubscriptionCheck.Context context)
- Specified by:
initializein interfaceSubscriptionCheck- Overrides:
initializein classAbstractCookieFlagCheck
-
headerValueRegex
protected String headerValueRegex()
- Specified by:
headerValueRegexin classAbstractCookieFlagCheck
-
-