Class ProxyAllowlist


  • public class ProxyAllowlist
    extends java.lang.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 java.util.concurrent.CopyOnWriteArraySet<java.lang.String> allowlist  
      protected javax.management.ObjectName fabricMBean  
      protected javax.management.MBeanServer mBeanServer  
      protected 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 void initialiseAllowlist()  
      protected java.util.Set<java.lang.String> invokeMBean()  
      boolean isAllowed​(ProxyDetails details)  
      boolean update()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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
    • Constructor Detail

      • ProxyAllowlist

        public ProxyAllowlist​(java.lang.String allowlistStr)
      • ProxyAllowlist

        public ProxyAllowlist​(java.lang.String allowlistStr,
                              boolean probeLocal)
    • 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()