SDK
SDK Java v3.x
2

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

GetMyRights #

Returns the rights for the currently logged in user within the SDK instance.

Arguments #

Copied to clipboard!
public CompletableFuture<ArrayList<Object>> getMyRights()
  throws NotConnectedException, InternalException

Return #

An ArrayList 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();
ArrayList<Object> result = kuzzle.getAuthController().getMyRights().get();