public class UserContext extends Object implements io.vertx.lang.rx.RxDelegate
impersonate()
- Require a re-authentication to switch user identitiesrestore()
- De-escalate a previous impersonate calllogout(java.lang.String)
- 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() |
Completable |
impersonate() |
Completable |
impersonate(String redirectUri) |
UserContext |
loginHint(String loginHint)
When performing a web identity operation, hint if possible to the identity provider to use the given login.
|
Completable |
logout() |
Completable |
logout(String redirectUri) |
static UserContext |
newInstance(UserContext arg) |
Completable |
restore() |
Completable |
restore(String redirectUri) |
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 Completable impersonate()
public Completable rxImpersonate()
public Completable impersonate(String redirectUri)
public Completable rxImpersonate(String redirectUri)
public Completable restore()
public Completable rxRestore()
public Completable restore(String redirectUri)
public Completable rxRestore(String redirectUri)
public Completable logout(String redirectUri)
public Completable rxLogout(String redirectUri)
public Completable logout()
public Completable rxLogout()
public void clear()
User
and clear the Session
(if any) in the current context. Unlike
logout(java.lang.String)
no redirect will be performed.public static UserContext newInstance(UserContext arg)
Copyright © 2025 Eclipse. All rights reserved.