Class GetPrivilegesRequest

java.lang.Object
org.elasticsearch.client.security.GetPrivilegesRequest
All Implemented Interfaces:
Validatable

public final class GetPrivilegesRequest extends Object implements Validatable
Request object to get application privilege(s)
  • Constructor Details

    • GetPrivilegesRequest

      public GetPrivilegesRequest(@Nullable String applicationName, @Nullable String... privilegeNames)
  • Method Details

    • getAllPrivileges

      public static GetPrivilegesRequest getAllPrivileges()
      Constructs a GetPrivilegesRequest to request all the privileges defined for all applications
    • getApplicationPrivileges

      public static GetPrivilegesRequest getApplicationPrivileges(String applicationName)
      Constructs a GetPrivilegesRequest to request all the privileges defined for the specified applicationName
      Parameters:
      applicationName - the name of the application for which the privileges are requested
    • getApplicationName

      public String getApplicationName()
      Returns:
      the name of the application for which to return certain privileges
    • getPrivilegeNames

      public String[] getPrivilegeNames()
      Returns:
      an array of privilege names to return or null if all should be returned
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object