public interface AuthStore
| Modifier and Type | Method and Description |
|---|---|
default String |
generateId()
Generates a unique ID that doesn't contain any user identifiable information.
|
default Future<List<JsonObject>> |
getUserCredentialsById(String rawId)
Same as
getUserCredentialsById(String, Handler) but using a Future. |
default AuthStore |
getUserCredentialsById(String rawId,
Handler<AsyncResult<List<JsonObject>>> handler)
Retrieves the user credentials from a backend given the user unique identifier.
|
default Future<List<JsonObject>> |
getUserCredentialsByName(String username)
Same as
getUserCredentialsByName(String, Handler) but using a Future. |
default AuthStore |
getUserCredentialsByName(String username,
Handler<AsyncResult<List<JsonObject>>> handler)
Retrieves the user credentials from a backend given the user unique identifier.
|
default Future<List<String>> |
getUserPermissions(String id)
Same as
getUserPermissions(String, Handler) but using a Future. |
default AuthStore |
getUserPermissions(String id,
Handler<AsyncResult<List<String>>> handler)
Get the user permissions from the storage.
|
default Future<List<String>> |
getUserRoles(String id)
Same as
getUserRoles(String, Handler) but using a Future. |
default AuthStore |
getUserRoles(String id,
Handler<AsyncResult<List<String>>> handler)
Get the user roles from the storage.
|
default Future<Void> |
updateUserCredential(String id,
JsonObject data,
boolean upsert)
Same as
updateUserCredential(String, JsonObject, boolean, Handler) but using a Future. |
default AuthStore |
updateUserCredential(String id,
JsonObject data,
boolean upsert,
Handler<AsyncResult<Void>> handler)
Update the user credential.
|
default String generateId()
default AuthStore getUserCredentialsByName(String username, Handler<AsyncResult<List<JsonObject>>> handler)
username - user unique name.handler - the handler for the result callback.default Future<List<JsonObject>> getUserCredentialsByName(String username)
getUserCredentialsByName(String, Handler) but using a Future.default AuthStore getUserCredentialsById(String rawId, Handler<AsyncResult<List<JsonObject>>> handler)
rawId - user unique rawId.handler - the handler for the result callback.default Future<List<JsonObject>> getUserCredentialsById(String rawId)
getUserCredentialsById(String, Handler) but using a Future.default AuthStore updateUserCredential(String id, JsonObject data, boolean upsert, Handler<AsyncResult<Void>> handler)
id - the unique user identifier.data - the data to update.upsert - insert if not present.handler - the handler for the result callback.default Future<Void> updateUserCredential(String id, JsonObject data, boolean upsert)
updateUserCredential(String, JsonObject, boolean, Handler) but using a Future.default AuthStore getUserRoles(String id, Handler<AsyncResult<List<String>>> handler)
id - the unique user identifier.handler - the handler for the result callback.default Future<List<String>> getUserRoles(String id)
getUserRoles(String, Handler) but using a Future.default AuthStore getUserPermissions(String id, Handler<AsyncResult<List<String>>> handler)
id - the unique user identifier.handler - the handler for the result callback.default Future<List<String>> getUserPermissions(String id)
getUserPermissions(String, Handler) but using a Future.Copyright © 2019 Eclipse. All rights reserved.