Class SamlAuthenticateResponse

java.lang.Object
co.elastic.clients.elasticsearch.security.SamlAuthenticateResponse
All Implemented Interfaces:
JsonpSerializable

@JsonpDeserializable public class SamlAuthenticateResponse extends Object implements JsonpSerializable
See Also:
  • Field Details

  • Method Details

    • of

    • accessToken

      public final String accessToken()
      Required - The access token that was generated by Elasticsearch.

      API name: access_token

    • username

      public final String username()
      Required - The authenticated user's name.

      API name: username

    • expiresIn

      public final int expiresIn()
      Required - The amount of time (in seconds) left until the token expires.

      API name: expires_in

    • refreshToken

      public final String refreshToken()
      Required - The refresh token that was generated by Elasticsearch.

      API name: refresh_token

    • realm

      public final String realm()
      Required - The name of the realm where the user was authenticated.

      API name: realm

    • inResponseTo

      @Nullable public final String inResponseTo()
      The id of the request that initiated the authentication process.

      API name: in_response_to

    • serialize

      public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • setupSamlAuthenticateResponseDeserializer

      protected static void setupSamlAuthenticateResponseDeserializer(ObjectDeserializer<SamlAuthenticateResponse.Builder> op)