Module org.elasticsearch.security
Class SecurityIpFilterRule
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
FieldsModifier and TypeFieldDescriptionstatic final SecurityIpFilterRulestatic final SecurityIpFilterRuleFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanmatches(InetSocketAddress remoteAddress) io.netty.handler.ipfilter.IpFilterRuleTyperuleType()toString()org.elasticsearch.xcontent.XContentBuildertoXContent(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, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentFragment
isFragment
-
Field Details
-
ACCEPT_ALL
-
DENY_ALL
-
-
Constructor Details
-
SecurityIpFilterRule
-
-
Method Details
-
toString
-
matches
- Specified by:
matchesin interfaceio.netty.handler.ipfilter.IpFilterRule
-
ruleType
public io.netty.handler.ipfilter.IpFilterRuleType ruleType()- Specified by:
ruleTypein interfaceio.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:
toXContentin interfaceorg.elasticsearch.xcontent.ToXContent- Throws:
IOException
-