Class TiangongProperties.Security
java.lang.Object
tech.riemann.nif.support.tiangong.autoconfigure.TiangongProperties.Security
- Enclosing class:
TiangongProperties
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintintintbooleanbooleanbooleanvoidsetCcMaxRequestsPerSecond(int ccMaxRequestsPerSecond) voidsetCcProtection(boolean ccProtection) voidsetCcWindowSeconds(int ccWindowSeconds) voidsetEnabled(boolean enabled) voidsetIpBlacklist(List<String> ipBlacklist) voidsetIpWhitelist(List<String> ipWhitelist) voidsetSlowAttackProtection(boolean slowAttackProtection) voidsetSlowReadTimeoutMs(int slowReadTimeoutMs) voidsetSlowWriteTimeoutMs(int slowWriteTimeoutMs)
-
Constructor Details
-
Security
public Security()
-
-
Method Details
-
isEnabled
public boolean isEnabled() -
setEnabled
public void setEnabled(boolean enabled) -
isSlowAttackProtection
public boolean isSlowAttackProtection() -
setSlowAttackProtection
public void setSlowAttackProtection(boolean slowAttackProtection) -
getSlowReadTimeoutMs
public int getSlowReadTimeoutMs() -
setSlowReadTimeoutMs
public void setSlowReadTimeoutMs(int slowReadTimeoutMs) -
getSlowWriteTimeoutMs
public int getSlowWriteTimeoutMs() -
setSlowWriteTimeoutMs
public void setSlowWriteTimeoutMs(int slowWriteTimeoutMs) -
isCcProtection
public boolean isCcProtection() -
setCcProtection
public void setCcProtection(boolean ccProtection) -
getCcMaxRequestsPerSecond
public int getCcMaxRequestsPerSecond() -
setCcMaxRequestsPerSecond
public void setCcMaxRequestsPerSecond(int ccMaxRequestsPerSecond) -
getCcWindowSeconds
public int getCcWindowSeconds() -
setCcWindowSeconds
public void setCcWindowSeconds(int ccWindowSeconds) -
getIpWhitelist
-
setIpWhitelist
-
getIpBlacklist
-
setIpBlacklist
-