Class CreateApiKeyResponse

java.lang.Object
org.elasticsearch.client.security.CreateApiKeyResponse

public final class CreateApiKeyResponse extends Object
Response for create API key
  • Constructor Details

    • CreateApiKeyResponse

      public CreateApiKeyResponse(String name, String id, org.elasticsearch.common.settings.SecureString key, Instant expiration)
  • Method Details

    • getName

      public String getName()
    • getId

      public String getId()
    • getKey

      public org.elasticsearch.common.settings.SecureString getKey()
    • getEncoded

      public org.elasticsearch.common.settings.SecureString getEncoded()
    • getExpiration

      @Nullable public Instant getExpiration()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • fromXContent

      public static CreateApiKeyResponse fromXContent(org.elasticsearch.xcontent.XContentParser parser) throws IOException
      Throws:
      IOException