Class 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface io.vertx.ext.auth.User

        isAuthorised
    • Constructor Detail

      • Pac4jUser

        public Pac4jUser()
    • 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 class io.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 interface io.vertx.core.shareddata.impl.ClusterSerializable
        Overrides:
        writeToBuffer in class io.vertx.ext.auth.AbstractUser
      • readFromBuffer

        public int readFromBuffer​(int pos,
                                  io.vertx.core.buffer.Buffer buffer)
        Specified by:
        readFromBuffer in interface io.vertx.core.shareddata.impl.ClusterSerializable
        Overrides:
        readFromBuffer in class io.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)