Class CreateTokenResponse

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

public final class CreateTokenResponse extends Object
Response when creating a new OAuth2 token in the Elasticsearch cluster. Contains an access token, the token's expiry, and an optional refresh token.
  • Constructor Details

  • Method Details

    • getAccessToken

      public String getAccessToken()
    • getType

      public String getType()
    • getExpiresIn

      public org.elasticsearch.core.TimeValue getExpiresIn()
    • getScope

      public String getScope()
    • getRefreshToken

      public String getRefreshToken()
    • getKerberosAuthenticationResponseToken

      public String getKerberosAuthenticationResponseToken()
    • getAuthentication

      public AuthenticateResponse getAuthentication()
    • equals

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

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

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