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
Argument | Type | Description |
---|---|---|
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();
Edit this page on Github(opens new window)