Class CreateApiKeyResponse

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

public final class CreateApiKeyResponse
extends java.lang.Object
Response for create API key
  • Constructor Summary

    Constructors 
    Constructor Description
    CreateApiKeyResponse​(java.lang.String name, java.lang.String id, org.elasticsearch.common.settings.SecureString key, java.time.Instant expiration)  
  • Method Summary

    Modifier and Type Method Description
    boolean equals​(java.lang.Object obj)  
    static CreateApiKeyResponse fromXContent​(org.elasticsearch.common.xcontent.XContentParser parser)  
    java.time.Instant getExpiration()  
    java.lang.String getId()  
    org.elasticsearch.common.settings.SecureString getKey()  
    java.lang.String getName()  
    int hashCode()  

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CreateApiKeyResponse

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

    • getName

      public java.lang.String getName()
    • getId

      public java.lang.String getId()
    • getKey

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

      @Nullable public java.time.Instant getExpiration()
    • hashCode

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

      public boolean equals​(java.lang.Object obj)
      Overrides:
      equals in class java.lang.Object
    • fromXContent

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