SDK Java v3.x

This SDK is deprecated. We recommend to use the Kuzzle SDK-JVM.
A migration guide is available here

Logout #

Revokes the user's token & unsubscribes them from registered rooms.

Arguments #

Copied to clipboard!
public CompletableFuture<Response> logout()
  throws NotConnectedException, InternalException

Return #

A Response object.

Usage #

Copied to clipboard!
ConcurrentHashMap<String, Object> credentials = new ConcurrentHashMap<>();
credentials.put("username", "foo");
credentials.put("password", "bar");
kuzzle.getAuthController().login("local", credentials).get();