Package | Description |
---|---|
io.vertx.ext.auth | |
io.vertx.ext.auth.authentication | |
io.vertx.ext.auth.authorization |
Modifier and Type | Class and Description |
---|---|
class |
AbstractUser
Deprecated.
All user objects should be created using
create(JsonObject) . |
Modifier and Type | Method and Description |
---|---|
User |
AbstractUser.clearCache()
Deprecated.
|
default User |
User.clearCache()
Deprecated.
This method will be removed. Use
Authorizations.clear() |
static User |
User.create(io.vertx.core.json.JsonObject principal)
Factory for user instances that are free form.
|
static User |
User.create(io.vertx.core.json.JsonObject principal,
io.vertx.core.json.JsonObject attributes)
Factory for user instances that are free form.
|
static User |
User.fromName(String username)
Factory for user instances that are single string.
|
static User |
User.fromToken(String token)
Factory for user instances that are single string.
|
User |
User.isAuthorized(Authorization authority,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Boolean>> resultHandler)
Deprecated.
|
User |
AbstractUser.isAuthorized(String authority,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Boolean>> resultHandler)
Deprecated.
|
default User |
User.isAuthorized(String authority,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Boolean>> resultHandler)
Deprecated.
Use typed alternative
isAuthorized(Authorization, Handler) |
Modifier and Type | Method and Description |
---|---|
default io.vertx.core.Future<User> |
AuthenticationProvider.authenticate(Credentials credentials)
Authenticate a user.
|
default io.vertx.core.Future<User> |
AuthenticationProvider.authenticate(io.vertx.core.json.JsonObject credentials)
Authenticate a user.
|
Modifier and Type | Method and Description |
---|---|
default void |
AuthenticationProvider.authenticate(Credentials credentials,
io.vertx.core.Handler<io.vertx.core.AsyncResult<User>> resultHandler)
Authenticate a user.
|
void |
AuthenticationProvider.authenticate(io.vertx.core.json.JsonObject credentials,
io.vertx.core.Handler<io.vertx.core.AsyncResult<User>> resultHandler)
Authenticate a user.
|
Modifier and Type | Method and Description |
---|---|
User |
AuthorizationContext.user()
Get the authenticated user
|
Modifier and Type | Method and Description |
---|---|
static AuthorizationContext |
AuthorizationContext.create(User user)
Factory for Authorization Context
|
default io.vertx.core.Future<Void> |
AuthorizationProvider.getAuthorizations(User user) |
void |
AuthorizationProvider.getAuthorizations(User user,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler)
Updates the user with the set of authorizations.
|
default boolean |
Authorization.match(User user)
this methods verifies whether or not the authorization match the specified
user.
|
Copyright © 2020 Eclipse. All rights reserved.