public class UserContext extends Object implements io.vertx.lang.rx.RxDelegate
impersonate(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>>)
- Require a re-authentication to switch user identitiesrestore(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>>)
- De-escalate a previous impersonate calllogout(java.lang.String, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>>)
- Logout the user from this application and redirect to a uriclear()
- Same as logout, without requirind a redirectoriginal
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<UserContext> |
__TYPE_ARG |
Constructor and Description |
---|
UserContext(Object delegate) |
UserContext(UserContext delegate) |
Modifier and Type | Method and Description |
---|---|
boolean |
authenticated() |
void |
clear()
Clear can be called from any route handler which needs to terminate a login session.
|
boolean |
equals(Object o) |
User |
get()
Get the authenticated user (if any).
|
UserContext |
getDelegate() |
int |
hashCode() |
void |
impersonate() |
void |
impersonate(Handler<AsyncResult<Void>> callback) |
void |
impersonate(String redirectUri) |
void |
impersonate(String redirectUri,
Handler<AsyncResult<Void>> callback) |
UserContext |
loginHint(String loginHint)
When performing a web identity operation, hint if possible to the identity provider to use the given login.
|
void |
logout() |
void |
logout(Handler<AsyncResult<Void>> callback) |
void |
logout(String redirectUri) |
void |
logout(String redirectUri,
Handler<AsyncResult<Void>> callback) |
static UserContext |
newInstance(UserContext arg) |
void |
restore() |
void |
restore(Handler<AsyncResult<Void>> callback) |
void |
restore(String redirectUri) |
void |
restore(String redirectUri,
Handler<AsyncResult<Void>> callback) |
Completable |
rxImpersonate() |
Completable |
rxImpersonate(String redirectUri) |
Completable |
rxLogout() |
Completable |
rxLogout(String redirectUri) |
Completable |
rxRestore() |
Completable |
rxRestore(String redirectUri) |
String |
toString() |
public static final io.vertx.lang.rx.TypeArg<UserContext> __TYPE_ARG
public UserContext(UserContext delegate)
public UserContext(Object delegate)
public UserContext getDelegate()
getDelegate
in interface io.vertx.lang.rx.RxDelegate
public User get()
public boolean authenticated()
public UserContext loginHint(String loginHint)
loginHint
- the desired login name, for example: admin
.public void impersonate(Handler<AsyncResult<Void>> callback)
public void impersonate()
public Completable rxImpersonate()
public void impersonate(String redirectUri, Handler<AsyncResult<Void>> callback)
public void impersonate(String redirectUri)
public Completable rxImpersonate(String redirectUri)
public void restore(Handler<AsyncResult<Void>> callback)
public void restore()
public Completable rxRestore()
public void restore(String redirectUri, Handler<AsyncResult<Void>> callback)
public void restore(String redirectUri)
public Completable rxRestore(String redirectUri)
public void logout(String redirectUri, Handler<AsyncResult<Void>> callback)
public void logout(String redirectUri)
public Completable rxLogout(String redirectUri)
public void logout(Handler<AsyncResult<Void>> callback)
public void logout()
public Completable rxLogout()
public void clear()
User
and clear the Session
(if any) in the current context. Unlike
logout(java.lang.String, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>>)
no redirect will be performed.public static UserContext newInstance(UserContext arg)
Copyright © 2025 Eclipse. All rights reserved.