Package io.hawt.system
Class ProxyAllowlist
- java.lang.Object
-
- io.hawt.system.ProxyAllowlist
-
public class ProxyAllowlist extends Object
Allowlist manager for hawtio proxy. TODO: For now this implementation is heavily relying on Fabric v1, and should be rewritten to a more general form.
-
-
Field Summary
Fields Modifier and Type Field Description protected CopyOnWriteArraySet<String>allowlistprotected ObjectNamefabricMBeanprotected MBeanServermBeanServerprotected List<Pattern>regexAllowlist
-
Constructor Summary
Constructors Constructor Description ProxyAllowlist(String allowlistStr)ProxyAllowlist(String allowlistStr, boolean probeLocal)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<Pattern>buildRegexAllowlist(List<String> allowlist)protected List<String>filterRegex(List<String> allowlist)protected voidinitialiseAllowlist()protected Set<String>invokeMBean()booleanisAllowed(ProxyDetails details)booleanupdate()
-
-
-
Field Detail
-
allowlist
protected CopyOnWriteArraySet<String> allowlist
-
mBeanServer
protected MBeanServer mBeanServer
-
fabricMBean
protected ObjectName fabricMBean
-
-
Method Detail
-
initialiseAllowlist
protected void initialiseAllowlist()
-
isAllowed
public boolean isAllowed(ProxyDetails details)
-
update
public boolean update()
-
-