Class GrantApiKeyRequest.Grant

java.lang.Object
org.elasticsearch.client.security.GrantApiKeyRequest.Grant
All Implemented Interfaces:
org.elasticsearch.xcontent.ToXContent, org.elasticsearch.xcontent.ToXContentFragment
Enclosing class:
GrantApiKeyRequest

public static class GrantApiKeyRequest.Grant extends Object implements org.elasticsearch.xcontent.ToXContentFragment
  • Method Details

    • passwordGrant

      public static GrantApiKeyRequest.Grant passwordGrant(String username, char[] password)
    • accessTokenGrant

      public static GrantApiKeyRequest.Grant accessTokenGrant(String accessToken)
    • getGrantType

      public String getGrantType()
    • getUsername

      public String getUsername()
    • getPassword

      public char[] getPassword()
    • getAccessToken

      public String getAccessToken()
    • 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
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object