Package | Description |
---|---|
io.vertx.rxjava.ext.auth | |
io.vertx.rxjava.ext.auth.shiro |
Modifier and Type | Method and Description |
---|---|
static AuthService |
AuthService.createEventBusProxy(Vertx vertx,
String address)
Create a proxy to an auth service that is deployed somwehere on the event bus.
|
static AuthService |
AuthService.createFromClassName(Vertx vertx,
String className)
Create an auth service instance using the specified auth provider class name.
|
AuthService |
AuthService.hasPermission(String loginID,
String permission,
Handler<AsyncResult<Boolean>> resultHandler)
Does the user have the specified permission?
|
AuthService |
AuthService.hasPermissions(String loginID,
Set<String> permissions,
Handler<AsyncResult<Boolean>> resultHandler)
Does the user have the specified permissions?
|
AuthService |
AuthService.hasRole(String loginID,
String role,
Handler<AsyncResult<Boolean>> resultHandler)
Does the user have the specified role?
|
AuthService |
AuthService.hasRoles(String loginID,
Set<String> roles,
Handler<AsyncResult<Boolean>> resultHandler)
Does the user have the specified roles?
|
AuthService |
AuthService.login(JsonObject principal,
JsonObject credentials,
Handler<AsyncResult<String>> resultHandler)
Authenticate (login) using the specified credentials.
|
AuthService |
AuthService.loginWithTimeout(JsonObject principal,
JsonObject credentials,
long timeout,
Handler<AsyncResult<String>> resultHandler)
Authenticate (login) using the specified credentials.
|
AuthService |
AuthService.logout(String loginID,
Handler<AsyncResult<Void>> resultHandler)
Logout the user
|
static AuthService |
AuthService.newInstance(AuthService arg) |
AuthService |
AuthService.refreshLoginSession(String loginID,
Handler<AsyncResult<Void>> resultHandler)
Refresh an existing login ID so it doesn't expire
|
AuthService |
AuthService.setReaperPeriod(long reaperPeriod)
Set the reaper period - how often to check for expired logins, in ms.
|
Modifier and Type | Class and Description |
---|---|
class |
ShiroAuthService
An Auth service implementation that uses Apache Shiro internally.
|
Modifier and Type | Method and Description |
---|---|
static AuthService |
ShiroAuthService.create(Vertx vertx,
ShiroAuthRealmType authRealmType,
JsonObject config)
Create an auth service using the specified auth realm type.
|
Copyright © 2015. All Rights Reserved.