SDK Java v3.x

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

GetStrategies #

Gets all authentication strategies registered in Kuzzle.

Arguments #

Copied to clipboard!
public CompletableFuture<ArrayList<String>> getStrategies()
  throws NotConnectedException, InternalException

Return #

An ArrayList representing the available authentication strategies.

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<String> result = kuzzle.getAuthController().getStrategies().get();