Package org.pac4j.vertx.auth
Class Pac4jUser
- java.lang.Object
-
- io.vertx.ext.auth.AbstractUser
-
- org.pac4j.vertx.auth.Pac4jUser
-
- All Implemented Interfaces:
io.vertx.core.shareddata.impl.ClusterSerializable
,io.vertx.ext.auth.User
public class Pac4jUser extends io.vertx.ext.auth.AbstractUser
- Since:
- 2.0.0
- Author:
- Jeremy Prime
-
-
Constructor Summary
Constructors Constructor Description Pac4jUser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doIsPermitted(java.lang.String permission, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Boolean>> resultHandler)
java.util.Map<java.lang.String,org.pac4j.core.profile.CommonProfile>
pac4jUserProfiles()
io.vertx.core.json.JsonObject
principal()
int
readFromBuffer(int pos, io.vertx.core.buffer.Buffer buffer)
void
setAuthProvider(io.vertx.ext.auth.AuthProvider authProvider)
void
setUserProfiles(java.util.Map<java.lang.String,org.pac4j.core.profile.CommonProfile> userProfiles)
void
writeToBuffer(io.vertx.core.buffer.Buffer buff)
-
Methods inherited from class io.vertx.ext.auth.AbstractUser
cachePermission, clearCache, isAuthorized
-
-
-
-
Method Detail
-
doIsPermitted
protected void doIsPermitted(java.lang.String permission, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Boolean>> resultHandler)
- Specified by:
doIsPermitted
in classio.vertx.ext.auth.AbstractUser
-
principal
public io.vertx.core.json.JsonObject principal()
-
setAuthProvider
public void setAuthProvider(io.vertx.ext.auth.AuthProvider authProvider)
-
writeToBuffer
public void writeToBuffer(io.vertx.core.buffer.Buffer buff)
- Specified by:
writeToBuffer
in interfaceio.vertx.core.shareddata.impl.ClusterSerializable
- Overrides:
writeToBuffer
in classio.vertx.ext.auth.AbstractUser
-
readFromBuffer
public int readFromBuffer(int pos, io.vertx.core.buffer.Buffer buffer)
- Specified by:
readFromBuffer
in interfaceio.vertx.core.shareddata.impl.ClusterSerializable
- Overrides:
readFromBuffer
in classio.vertx.ext.auth.AbstractUser
-
pac4jUserProfiles
public java.util.Map<java.lang.String,org.pac4j.core.profile.CommonProfile> pac4jUserProfiles()
-
setUserProfiles
public void setUserProfiles(java.util.Map<java.lang.String,org.pac4j.core.profile.CommonProfile> userProfiles)
-
-