Class SamlLogoutRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.security.SamlLogoutRequest
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable
public class SamlLogoutRequest
extends RequestBase
implements JsonpSerializable
Logout of SAML.
Submits a request to invalidate an access token and refresh token.
NOTE: This API is intended for use by custom web applications other than Kibana. If you are using Kibana, refer to the documentation for configuring SAML single-sign-on on the Elastic Stack.
This API invalidates the tokens that were generated for a user by the SAML authenticate API. If the SAML realm in Elasticsearch is configured accordingly and the SAML IdP supports this, the Elasticsearch response contains a URL to redirect the user to the IdP that contains a SAML logout request (starting an SP-initiated SAML Single Logout).
- 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<SamlLogoutRequest>Json deserializer forSamlLogoutRequeststatic final Endpoint<SamlLogoutRequest,SamlLogoutResponse, ErrorResponse> Endpoint "security.saml_logout". -
Method Summary
Modifier and TypeMethodDescriptionstatic SamlLogoutRequestfinal StringThe refresh token that was returned as a response to calling the SAML authenticate API.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal Stringtoken()Required - The access token that was returned as a response to calling the SAML authenticate API.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_DESERIALIZER
Json deserializer forSamlLogoutRequest -
_ENDPOINT
Endpoint "security.saml_logout".
-
-
Method Details
-
of
public static SamlLogoutRequest of(Function<SamlLogoutRequest.Builder, ObjectBuilder<SamlLogoutRequest>> fn) -
refreshToken
The refresh token that was returned as a response to calling the SAML authenticate API. Alternatively, the most recent refresh token that was received after refreshing the original access token.API name:
refresh_token -
token
Required - The access token that was returned as a response to calling the SAML authenticate API. Alternatively, the most recent token that was received after refreshing the original one by using arefresh_token.API name:
token -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupSamlLogoutRequestDeserializer
protected static void setupSamlLogoutRequestDeserializer(ObjectDeserializer<SamlLogoutRequest.Builder> op)
-