Class UserFactory
java.lang.Object
de.xima.fc.user.UserFactory
-
Method Summary
Modifier and TypeMethodDescriptionstatic IUseranonymous(Collection<BenutzerGruppe> userGroups) static org.pac4j.core.config.ConfigfindConfig(IAuthenticationTarget target) static IUserforPac4jProfile(org.pac4j.core.profile.UserProfile pac4jProfile) static IUserforWebContext(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, IAuthenticationTarget target) static voidregisterConfigProducer(Function<? super IAuthenticationTarget, ? extends org.pac4j.core.config.Config> configProducer) Registers producer for a Pac4JConfig.static voidregisterUserProducer(Function<org.pac4j.core.profile.UserProfile, IUser> userProducer)
-
Method Details
-
registerUserProducer
-
registerConfigProducer
public static void registerConfigProducer(Function<? super IAuthenticationTarget, ? extends org.pac4j.core.config.Config> configProducer) Registers producer for a Pac4JConfig. The producer is given theIAuthenticationTarget. It may return null when it cannot produce a config for the given authentication target. The config of the first producer that returns a non-null value will be used. When no producer returns a config, no config i- Parameters:
configProducer- producer for a Pac4JConfig.
-
forWebContext
public static IUser forWebContext(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, IAuthenticationTarget target) -
forPac4jProfile
-
anonymous
-
findConfig
-