SDK
SDK Jvm v1.x
2

GetStrategies #

Gets all authentication strategies registered in Kuzzle.

:::: tabs ::: tab Java

Arguments #

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

Return #

An ArrayList representing the available authentication strategies.

Usage #

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

::: ::: Kotlin

Arguments #

Copied to clipboard!
fun getStrategies(): CompletableFuture<ArrayList<String>>

Return #

An ArrayList representing the available authentication strategies.

Usage #

Copied to clipboard!
kuzzle.authController.login("local", HashMap<String, Any?>().apply {
  put("username", "foo")
  put("password", "bar")
}).get()
val result: ArrayList<String> =
  kuzzle.authController.getStrategies().get();

::: ::::