Class GetTokenRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.security.GetTokenRequest
- All Implemented Interfaces:
JsonpSerializable
Creates a bearer token for access without requiring basic authentication.
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<GetTokenRequest>Json deserializer forGetTokenRequeststatic final Endpoint<GetTokenRequest,GetTokenResponse, ErrorResponse> Endpoint "security.get_token". -
Method Summary
Modifier and TypeMethodDescriptionfinal AccessTokenGrantTypeAPI name:grant_typefinal StringAPI name:kerberos_ticketstatic GetTokenRequestfinal Stringpassword()API name:passwordfinal StringAPI name:refresh_tokenfinal Stringscope()API name:scopevoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal Stringusername()API name:usernameMethods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_DESERIALIZER
Json deserializer forGetTokenRequest -
_ENDPOINT
Endpoint "security.get_token".
-
-
Method Details
-
of
public static GetTokenRequest of(Function<GetTokenRequest.Builder, ObjectBuilder<GetTokenRequest>> fn) -
grantType
API name:grant_type -
kerberosTicket
API name:kerberos_ticket -
password
API name:password -
refreshToken
API name:refresh_token -
scope
API name:scope -
username
API name:username -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupGetTokenRequestDeserializer
protected static void setupGetTokenRequestDeserializer(ObjectDeserializer<GetTokenRequest.Builder> op)
-