Class SamlPrepareAuthenticationRequest.Builder

java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.security.SamlPrepareAuthenticationRequest.Builder
All Implemented Interfaces:
ObjectBuilder<SamlPrepareAuthenticationRequest>
Enclosing class:
SamlPrepareAuthenticationRequest

public static class SamlPrepareAuthenticationRequest.Builder
extends ObjectBuilderBase
implements ObjectBuilder<SamlPrepareAuthenticationRequest>
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • acs

      public final SamlPrepareAuthenticationRequest.Builder acs​(@Nullable java.lang.String value)
      The Assertion Consumer Service URL that matches the one of the SAML realms in Elasticsearch. The realm is used to generate the authentication request. You must specify either this parameter or the realm parameter.

      API name: acs

    • realm

      public final SamlPrepareAuthenticationRequest.Builder realm​(@Nullable java.lang.String value)
      The name of the SAML realm in Elasticsearch for which the configuration is used to generate the authentication request. You must specify either this parameter or the acs parameter.

      API name: realm

    • relayState

      public final SamlPrepareAuthenticationRequest.Builder relayState​(@Nullable java.lang.String value)
      A string that will be included in the redirect URL that this API returns as the RelayState query parameter. If the Authentication Request is signed, this value is used as part of the signature computation.

      API name: relay_state

    • build

      Specified by:
      build in interface ObjectBuilder<SamlPrepareAuthenticationRequest>
      Throws:
      java.lang.NullPointerException - if some of the required fields are null.