Class AbstractIndicesPrivileges.FieldSecurity

java.lang.Object
org.elasticsearch.client.security.user.privileges.AbstractIndicesPrivileges.FieldSecurity
All Implemented Interfaces:
ToXContent, ToXContentObject
Enclosing class:
AbstractIndicesPrivileges

public static class AbstractIndicesPrivileges.FieldSecurity
extends java.lang.Object
implements ToXContentObject
  • Method Details

    • getGrantedFields

      public java.util.Set<java.lang.String> getGrantedFields()
      The document fields that can be read or queried. Can be null, in this case all the document's fields are granted access to. Can also be empty, in which case no fields are granted access to.
    • getDeniedFields

      public java.util.Set<java.lang.String> getDeniedFields()
      The document fields that cannot be accessed or queried. Can be null or empty, in which case no fields are denied.
    • isUsingFieldLevelSecurity

      public boolean isUsingFieldLevelSecurity()
    • toXContent

      public XContentBuilder toXContent​(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
      Specified by:
      toXContent in interface ToXContent
      Throws:
      java.io.IOException
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • equals

      public boolean equals​(java.lang.Object o)
      Overrides:
      equals in class java.lang.Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object