Class InvalidateTokenRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.security.InvalidateTokenRequest
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class InvalidateTokenRequest extends RequestBase implements JsonpSerializable
Invalidates one or more access tokens or refresh tokens.
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classInvalidateTokenRequest.BuilderBuilder forInvalidateTokenRequest.Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<InvalidateTokenRequest>_DESERIALIZERJson deserializer forInvalidateTokenRequeststatic Endpoint<InvalidateTokenRequest,InvalidateTokenResponse,ErrorResponse>_ENDPOINTEndpoint "security.invalidate_token". -
Method Summary
Modifier and Type Method Description static InvalidateTokenRequestof(java.util.function.Function<InvalidateTokenRequest.Builder,ObjectBuilder<InvalidateTokenRequest>> fn)java.lang.StringrealmName()API name:realm_namejava.lang.StringrefreshToken()API name:refresh_tokenvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupInvalidateTokenRequestDeserializer(ObjectDeserializer<InvalidateTokenRequest.Builder> op)java.lang.Stringtoken()API name:tokenjava.lang.Stringusername()API name:usernameMethods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forInvalidateTokenRequest -
_ENDPOINT
public static final Endpoint<InvalidateTokenRequest,InvalidateTokenResponse,ErrorResponse> _ENDPOINTEndpoint "security.invalidate_token".
-
-
Method Details
-
of
public static InvalidateTokenRequest of(java.util.function.Function<InvalidateTokenRequest.Builder,ObjectBuilder<InvalidateTokenRequest>> fn) -
realmName
@Nullable public final java.lang.String realmName()API name:realm_name -
refreshToken
@Nullable public final java.lang.String refreshToken()API name:refresh_token -
token
@Nullable public final java.lang.String token()API name:token -
username
@Nullable public final java.lang.String username()API name:username -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupInvalidateTokenRequestDeserializer
protected static void setupInvalidateTokenRequestDeserializer(ObjectDeserializer<InvalidateTokenRequest.Builder> op)
-