|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.owasp.esapi.waf.configuration.AppGuardianConfiguration
public class AppGuardianConfiguration
This class is the object model of the policy file. Also holds a number of constants used throughout the WAF.
Field Summary | |
---|---|
static int |
BLOCK
|
static String |
DEFAULT_CHARACTER_ENCODING
|
static String |
DEFAULT_CONTENT_TYPE
|
static int |
DEFAULT_FAIL_ACTION
|
static String |
JAVASCRIPT_REDIRECT
|
static String |
JAVASCRIPT_TARGET_TOKEN
|
static int |
LOG
|
static String |
LOG_DIRECTORY
|
static org.apache.log4j.Level |
LOG_LEVEL
|
static int |
OPERATOR_CONTAINS
|
static int |
OPERATOR_EQ
|
static int |
OPERATOR_EXISTS
|
static int |
OPERATOR_IN_LIST
|
static int |
REDIRECT
|
Constructor Summary | |
---|---|
AppGuardianConfiguration()
|
Method Summary | |
---|---|
void |
addAfterBodyRule(Rule r)
|
void |
addAlias(String key,
Object obj)
|
void |
addBeforeBodyRule(Rule r)
|
void |
addBeforeResponseRule(Rule r)
|
void |
addCookieRule(Rule r)
|
List<Rule> |
getAfterBodyRules()
|
List<Rule> |
getBeforeBodyRules()
|
List<Rule> |
getBeforeResponseRules()
|
List<Rule> |
getCookieRules()
|
String |
getDefaultErrorPage()
|
int |
getDefaultResponseCode()
|
String |
getLogDirectory()
Deprecated. |
org.apache.log4j.Level |
getLogLevel()
Deprecated. |
String |
getSessionCookieName()
|
boolean |
isUsingHttpOnlyFlagOnSessionCookie()
|
boolean |
isUsingSecureFlagOnSessionCookie()
|
void |
setApplyHTTPOnlyFlagToSessionCookie(boolean shouldApply)
|
void |
setApplySecureFlagToSessionCookie(boolean shouldApply)
|
void |
setDefaultErrorPage(String defaultErrorPage)
|
void |
setDefaultResponseCode(int defaultResponseCode)
|
void |
setLogDirectory(String dir)
Deprecated. |
void |
setLogLevel(org.apache.log4j.Level level)
Deprecated. |
void |
setSessionCookieName(String sessionCookieName)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int LOG
public static final int REDIRECT
public static final int BLOCK
public static final int OPERATOR_EQ
public static final int OPERATOR_CONTAINS
public static final int OPERATOR_IN_LIST
public static final int OPERATOR_EXISTS
public static org.apache.log4j.Level LOG_LEVEL
public static String LOG_DIRECTORY
public static int DEFAULT_FAIL_ACTION
public static String DEFAULT_CHARACTER_ENCODING
public static String DEFAULT_CONTENT_TYPE
public static final String JAVASCRIPT_TARGET_TOKEN
public static final String JAVASCRIPT_REDIRECT
Constructor Detail |
---|
public AppGuardianConfiguration()
Method Detail |
---|
public String getSessionCookieName()
public void setSessionCookieName(String sessionCookieName)
@Deprecated public org.apache.log4j.Level getLogLevel()
@Deprecated public void setLogLevel(org.apache.log4j.Level level)
@Deprecated public void setLogDirectory(String dir)
@Deprecated public String getLogDirectory()
public String getDefaultErrorPage()
public void setDefaultErrorPage(String defaultErrorPage)
public int getDefaultResponseCode()
public void setDefaultResponseCode(int defaultResponseCode)
public void addAlias(String key, Object obj)
public List<Rule> getBeforeBodyRules()
public List<Rule> getAfterBodyRules()
public List<Rule> getBeforeResponseRules()
public List<Rule> getCookieRules()
public void addBeforeBodyRule(Rule r)
public void addAfterBodyRule(Rule r)
public void addBeforeResponseRule(Rule r)
public void addCookieRule(Rule r)
public void setApplyHTTPOnlyFlagToSessionCookie(boolean shouldApply)
public void setApplySecureFlagToSessionCookie(boolean shouldApply)
public boolean isUsingHttpOnlyFlagOnSessionCookie()
public boolean isUsingSecureFlagOnSessionCookie()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |