Class UserFactory


  • public class UserFactory
    extends Object
    Factory for creating IUsers.
    Since:
    8.0.0
    Author:
    XIMA Media GmbH
    • Method Detail

      • registerUserProducer

        public static void registerUserProducer​(Function<org.pac4j.core.profile.UserProfile,​IUser> userProducer)
      • forWebContext

        public static IUser forWebContext​(javax.servlet.http.HttpServletRequest req,
                                          javax.servlet.http.HttpServletResponse resp,
                                          IAuthenticationTarget target)
      • forPac4jProfile

        public static IUser forPac4jProfile​(org.pac4j.core.profile.UserProfile pac4jProfile)
      • userForPac4jProfile

        public static IUser userForPac4jProfile​(org.pac4j.core.profile.UserProfile pac4jProfile)