SDK
SDK Java v3.x
2

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

GetMyCredentials #

Returns the current user's credential information for the specified strategy. The data returned will depend on the specified strategy. The result can be empty.

Arguments #

public CompletableFuture<ConcurrentHashMap<String, Object>> getMyCredentials()
  throws NotConnectedException, InternalException
ArgumentTypeDescription
strategy
String
Strategy to use

Return #

Returns a ConcurrentHashMap representing the credentials for the provided authentication strategy.

Usage #

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