public class User extends Object
Please consult the documentation for a detailed explanation.
NOTE: This class has been automatically generated from theoriginal
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static TypeArg<User> |
__TYPE_ARG |
Constructor and Description |
---|
User(Object delegate) |
User(io.vertx.ext.auth.User delegate) |
Modifier and Type | Method and Description |
---|---|
User |
clearCache()
Deprecated.
|
boolean |
equals(Object o) |
io.vertx.ext.auth.User |
getDelegate() |
int |
hashCode() |
User |
isAuthorised(String authority,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Boolean>> resultHandler)
Deprecated.
|
rx.Observable<Boolean> |
isAuthorisedObservable(String authority)
Deprecated.
use
rxIsAuthorised(java.lang.String) instead |
User |
isAuthorized(String authority,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Boolean>> resultHandler)
Deprecated.
|
rx.Observable<Boolean> |
isAuthorizedObservable(String authority)
Deprecated.
use
rxIsAuthorized(java.lang.String) instead |
static User |
newInstance(io.vertx.ext.auth.User arg) |
io.vertx.core.json.JsonObject |
principal()
Get the underlying principal for the User.
|
rx.Single<Boolean> |
rxIsAuthorised(String authority)
Deprecated.
|
rx.Single<Boolean> |
rxIsAuthorized(String authority)
Deprecated.
|
void |
setAuthProvider(AuthProvider authProvider)
Deprecated.
|
String |
toString() |
public User(io.vertx.ext.auth.User delegate)
public User(Object delegate)
public io.vertx.ext.auth.User getDelegate()
@Deprecated public User isAuthorized(String authority, io.vertx.core.Handler<io.vertx.core.AsyncResult<Boolean>> resultHandler)
authority
- the authority - what this really means is determined by the specific implementation. It might represent a permission to access a resource e.g. `printers:printer34` or it might represent authority to a role in a roles based model, e.g. `role:admin`.resultHandler
- handler that will be called with an AsyncResult
containing the value `true` if the they has the authority or `false` otherwise.@Deprecated public rx.Observable<Boolean> isAuthorizedObservable(String authority)
rxIsAuthorized(java.lang.String)
insteadauthority
- the authority - what this really means is determined by the specific implementation. It might represent a permission to access a resource e.g. `printers:printer34` or it might represent authority to a role in a roles based model, e.g. `role:admin`.@Deprecated public rx.Single<Boolean> rxIsAuthorized(String authority)
authority
- the authority - what this really means is determined by the specific implementation. It might represent a permission to access a resource e.g. `printers:printer34` or it might represent authority to a role in a roles based model, e.g. `role:admin`.@Deprecated public User isAuthorised(String authority, io.vertx.core.Handler<io.vertx.core.AsyncResult<Boolean>> resultHandler)
authority
- resultHandler
- @Deprecated public rx.Observable<Boolean> isAuthorisedObservable(String authority)
rxIsAuthorised(java.lang.String)
insteadauthority
- @Deprecated public rx.Single<Boolean> rxIsAuthorised(String authority)
authority
- @Deprecated public User clearCache()
public io.vertx.core.json.JsonObject principal()
{ "username", "tim" }
@Deprecated public void setAuthProvider(AuthProvider authProvider)
authProvider
- the AuthProvider - this must be the same type of AuthProvider that originally created the Userpublic static User newInstance(io.vertx.ext.auth.User arg)
Copyright © 2022 Eclipse. All rights reserved.