java.lang.Object
org.elasticsearch.xpack.security.transport.filter.SecurityIpFilterRule
All Implemented Interfaces:
io.netty.handler.ipfilter.IpFilterRule, org.elasticsearch.xcontent.ToXContent, org.elasticsearch.xcontent.ToXContentFragment

public class SecurityIpFilterRule extends Object implements io.netty.handler.ipfilter.IpFilterRule, org.elasticsearch.xcontent.ToXContentFragment
decorator class to have a useful toString() method for an IpFilterRule as this is needed for audit logging
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent

    org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.Params
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
     

    Fields inherited from interface org.elasticsearch.xcontent.ToXContent

    EMPTY, EMPTY_PARAMS
  • Constructor Summary

    Constructors
    Constructor
    Description
    SecurityIpFilterRule(boolean isAllowRule, String ruleSpec)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    matches(InetSocketAddress remoteAddress)
     
    io.netty.handler.ipfilter.IpFilterRuleType
     
     
    org.elasticsearch.xcontent.XContentBuilder
    toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.elasticsearch.xcontent.ToXContentFragment

    isFragment
  • Field Details

  • Constructor Details

    • SecurityIpFilterRule

      public SecurityIpFilterRule(boolean isAllowRule, String ruleSpec)
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • matches

      public boolean matches(InetSocketAddress remoteAddress)
      Specified by:
      matches in interface io.netty.handler.ipfilter.IpFilterRule
    • ruleType

      public io.netty.handler.ipfilter.IpFilterRuleType ruleType()
      Specified by:
      ruleType in interface io.netty.handler.ipfilter.IpFilterRule
    • toXContent

      public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException
      Specified by:
      toXContent in interface org.elasticsearch.xcontent.ToXContent
      Throws:
      IOException