SDK
SDK Java v3.x
2

# 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

Copied to clipboard!
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

Copied to clipboard!
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();