Package io.hawt.system
Class ProxyAllowlist
- java.lang.Object
-
- io.hawt.system.ProxyAllowlist
-
public class ProxyAllowlist extends java.lang.ObjectAllowlist 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 java.util.concurrent.CopyOnWriteArraySet<java.lang.String>allowlistprotected javax.management.ObjectNamefabricMBeanprotected javax.management.MBeanServermBeanServerprotected java.util.List<java.util.regex.Pattern>regexAllowlist
-
Constructor Summary
Constructors Constructor Description ProxyAllowlist(java.lang.String allowlistStr)ProxyAllowlist(java.lang.String allowlistStr, boolean probeLocal)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.List<java.util.regex.Pattern>buildRegexAllowlist(java.util.List<java.lang.String> allowlist)protected java.util.List<java.lang.String>filterRegex(java.util.List<java.lang.String> allowlist)protected voidinitialiseAllowlist()protected java.util.Set<java.lang.String>invokeMBean()booleanisAllowed(ProxyDetails details)booleanupdate()
-
-
-
Field Detail
-
allowlist
protected java.util.concurrent.CopyOnWriteArraySet<java.lang.String> allowlist
-
regexAllowlist
protected java.util.List<java.util.regex.Pattern> regexAllowlist
-
mBeanServer
protected javax.management.MBeanServer mBeanServer
-
fabricMBean
protected javax.management.ObjectName fabricMBean
-
-
Method Detail
-
filterRegex
protected java.util.List<java.lang.String> filterRegex(java.util.List<java.lang.String> allowlist)
-
buildRegexAllowlist
protected java.util.List<java.util.regex.Pattern> buildRegexAllowlist(java.util.List<java.lang.String> allowlist)
-
initialiseAllowlist
protected void initialiseAllowlist()
-
isAllowed
public boolean isAllowed(ProxyDetails details)
-
update
public boolean update()
-
invokeMBean
protected java.util.Set<java.lang.String> invokeMBean()
-
-