public class KeepUser
extends java.lang.Object
implements io.vertx.ext.auth.User
Information about the current user and the permissions the user has in various places
Modifier and Type | Method and Description |
---|---|
io.vertx.core.json.JsonObject |
attributes() |
java.lang.String |
getInternetEmail() |
java.lang.String |
getMailDomain() |
java.lang.String |
getMailFileName() |
java.lang.String |
getMailServer() |
io.vertx.core.json.JsonObject |
getPrincipal() |
static KeepUser |
getUser(java.lang.String incoming) |
static KeepUser |
getUser(io.vertx.ext.auth.User vertxUser,
boolean allowJwtMail)
Creates a keep user based on an authenticated user coming in from the platform
|
java.lang.String |
getUserName() |
io.vertx.ext.auth.User |
isAuthorized(io.vertx.ext.auth.authorization.Authorization authority,
io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Boolean>> resultHandler)
Deprecated.
|
boolean |
isLocalUser() |
KeepUser |
isLocalUser(boolean isLocal) |
boolean |
isTryMailReplica() |
KeepUser |
mergeIn(KeepUser ku) |
io.vertx.core.json.JsonObject |
principal() |
void |
setAuthProvider(io.vertx.ext.auth.AuthProvider authProvider)
Deprecated.
|
KeepUser |
setInternetEmail(java.lang.String internetEmail) |
KeepUser |
setMailDomain(java.lang.String mailDomain) |
KeepUser |
setMailFileName(java.lang.String mailFileName) |
KeepUser |
setMailServer(java.lang.String mailServer) |
java.lang.String |
toString() |
KeepUser |
updateFromJson(io.vertx.core.json.JsonObject result) |
public static KeepUser getUser(java.lang.String incoming)
incoming
- public static KeepUser getUser(io.vertx.ext.auth.User vertxUser, boolean allowJwtMail)
Creates a keep user based on an authenticated user coming in from the platform
vertxUser
- allowJwtMail
- public io.vertx.core.json.JsonObject attributes()
attributes
in interface io.vertx.ext.auth.User
public java.lang.String getInternetEmail()
public java.lang.String getMailDomain()
public java.lang.String getMailFileName()
public java.lang.String getMailServer()
public io.vertx.core.json.JsonObject getPrincipal()
public java.lang.String getUserName()
@Deprecated public io.vertx.ext.auth.User isAuthorized(io.vertx.ext.auth.authorization.Authorization authority, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Boolean>> resultHandler)
isAuthorized
in interface io.vertx.ext.auth.User
public boolean isLocalUser()
public KeepUser isLocalUser(boolean isLocal)
isLocal
- public boolean isTryMailReplica()
public KeepUser mergeIn(KeepUser ku)
ku
- public io.vertx.core.json.JsonObject principal()
principal
in interface io.vertx.ext.auth.User
@Deprecated public void setAuthProvider(io.vertx.ext.auth.AuthProvider authProvider)
setAuthProvider
in interface io.vertx.ext.auth.User
public KeepUser setInternetEmail(java.lang.String internetEmail)
internetEmail
- the internetEmail to setpublic KeepUser setMailDomain(java.lang.String mailDomain)
mailDomain
- the mailDomain to setpublic KeepUser setMailFileName(java.lang.String mailFileName)
mailFileName
- the mailFileName to setpublic KeepUser setMailServer(java.lang.String mailServer)
mailServer
- the mailServer to setpublic java.lang.String toString()
toString
in class java.lang.Object
public KeepUser updateFromJson(io.vertx.core.json.JsonObject result)
result
-