Class OidcAuthenticateRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<OidcAuthenticateRequest.Builder>
co.elastic.clients.elasticsearch.security.OidcAuthenticateRequest.Builder
- All Implemented Interfaces:
WithJson<OidcAuthenticateRequest.Builder>,ObjectBuilder<OidcAuthenticateRequest>
- Enclosing class:
- OidcAuthenticateRequest
public static class OidcAuthenticateRequest.Builder
extends RequestBase.AbstractBuilder<OidcAuthenticateRequest.Builder>
implements ObjectBuilder<OidcAuthenticateRequest>
Builder for
OidcAuthenticateRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aOidcAuthenticateRequest.Required - Associate a client session with an ID token and mitigate replay attacks.The name of the OpenID Connect realm.redirectUri(String value) Required - The URL to which the OpenID Connect Provider redirected the User Agent in response to an authentication request after a successful authentication.protected OidcAuthenticateRequest.Builderself()Required - Maintain state between the authentication request and the response.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
nonce
Required - Associate a client session with an ID token and mitigate replay attacks. This value needs to be the same as the one that was provided to the/_security/oidc/prepareAPI or the one that was generated by Elasticsearch and included in the response to that call.API name:
nonce -
realm
The name of the OpenID Connect realm. This property is useful in cases where multiple realms are defined.API name:
realm -
redirectUri
Required - The URL to which the OpenID Connect Provider redirected the User Agent in response to an authentication request after a successful authentication. This URL must be provided as-is (URL encoded), taken from the body of the response or as the value of a location header in the response from the OpenID Connect Provider.API name:
redirect_uri -
state
Required - Maintain state between the authentication request and the response. This value needs to be the same as the one that was provided to the/_security/oidc/prepareAPI or the one that was generated by Elasticsearch and included in the response to that call.API name:
state -
self
- Specified by:
selfin classRequestBase.AbstractBuilder<OidcAuthenticateRequest.Builder>
-
build
Builds aOidcAuthenticateRequest.- Specified by:
buildin interfaceObjectBuilder<OidcAuthenticateRequest>- Throws:
NullPointerException- if some of the required fields are null.
-