Class SamlAuthenticateRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<SamlAuthenticateRequest.Builder>
co.elastic.clients.elasticsearch.security.SamlAuthenticateRequest.Builder
- All Implemented Interfaces:
WithJson<SamlAuthenticateRequest.Builder>,ObjectBuilder<SamlAuthenticateRequest>
- Enclosing class:
- SamlAuthenticateRequest
public static class SamlAuthenticateRequest.Builder extends WithJsonObjectBuilderBase<SamlAuthenticateRequest.Builder> implements ObjectBuilder<SamlAuthenticateRequest>
Builder for
SamlAuthenticateRequest.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description SamlAuthenticateRequestbuild()Builds aSamlAuthenticateRequest.SamlAuthenticateRequest.Buildercontent(java.lang.String value)Required - The SAML response as it was sent by the user’s browser, usually a Base64 encoded XML document.SamlAuthenticateRequest.Builderids(java.lang.String value, java.lang.String... values)Required - A json array with all the valid SAML Request Ids that the caller of the API has for the current user.SamlAuthenticateRequest.Builderids(java.util.List<java.lang.String> list)Required - A json array with all the valid SAML Request Ids that the caller of the API has for the current user.SamlAuthenticateRequest.Builderrealm(java.lang.String value)The name of the realm that should authenticate the SAML response.protected SamlAuthenticateRequest.Builderself()Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
content
Required - The SAML response as it was sent by the user’s browser, usually a Base64 encoded XML document.API name:
content -
ids
Required - A json array with all the valid SAML Request Ids that the caller of the API has for the current user.API name:
idsAdds all elements of
listtoids. -
ids
public final SamlAuthenticateRequest.Builder ids(java.lang.String value, java.lang.String... values)Required - A json array with all the valid SAML Request Ids that the caller of the API has for the current user.API name:
idsAdds one or more values to
ids. -
realm
The name of the realm that should authenticate the SAML response. Useful in cases where many SAML realms are defined.API name:
realm -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<SamlAuthenticateRequest.Builder>
-
build
Builds aSamlAuthenticateRequest.- Specified by:
buildin interfaceObjectBuilder<SamlAuthenticateRequest>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-