SecurityLogic securityLogic = pac4j.getSecurityLogic(); if (securityLogic == null) { securityLogic = new DefaultSecurityLogic(); pac4j.setSecurityLogic(securityLogic);
protected SecurityHandler(final HttpHandler toWrap, final Config config, final String clients, final String authorizers, final String matchers, final Boolean multiProfile) { securityLogic = new DefaultSecurityLogic<>(); ((DefaultSecurityLogic<Object, UndertowWebContext>) securityLogic).setProfileManagerFactory(UndertowProfileManager::new); this.toWrap = toWrap; this.config = config; this.clients = clients; this.authorizers = authorizers; this.matchers = matchers; this.multiProfile = multiProfile; }
public SecurityFilter() { securityLogic = new DefaultSecurityLogic<>(); ((DefaultSecurityLogic<Object, J2EContext>) securityLogic).setProfileManagerFactory(SpringSecurityProfileManager::new); }
protected SecurityLogic<Object, JaxRsContext> buildLogic(Config config) { if (securityLogic != null) { return securityLogic; } else if (config.getSecurityLogic() != null) { return config.getSecurityLogic(); } else { DefaultSecurityLogic<Object, JaxRsContext> logic = new DefaultSecurityLogic<>(); logic.setProfileManagerFactory(JaxRsProfileManager::new); return logic; } }
public SecurityHandler(final Vertx vertx, final SessionStore<VertxWebContext> sessionStore, final Config config, final Pac4jAuthProvider authProvider, final SecurityHandlerOptions options) { super(authProvider); CommonHelper.assertNotNull("vertx", vertx); CommonHelper.assertNotNull("sessionStore", sessionStore); CommonHelper.assertNotNull("config", config); CommonHelper.assertNotNull("config.getClients()", config.getClients()); CommonHelper.assertNotNull("authProvider", authProvider); CommonHelper.assertNotNull("options", options); clientNames = options.getClients(); authorizerName = options.getAuthorizers(); matcherName = options.getMatchers(); multiProfile = options.isMultiProfile(); this.vertx = vertx; this.sessionStore = sessionStore; this.config = config; final DefaultSecurityLogic<Void, VertxWebContext> securityLogic = new DefaultSecurityLogic<>(); securityLogic.setProfileManagerFactory(VertxProfileManager::new); this.securityLogic = securityLogic; }
public SecurityHandler(final Vertx vertx, final SessionStore<VertxWebContext> sessionStore, final Config config, final Pac4jAuthProvider authProvider, final SecurityHandlerOptions options) { super(authProvider); CommonHelper.assertNotNull("vertx", vertx); CommonHelper.assertNotNull("sessionStore", sessionStore); CommonHelper.assertNotNull("config", config); CommonHelper.assertNotNull("config.getClients()", config.getClients()); CommonHelper.assertNotNull("authProvider", authProvider); CommonHelper.assertNotNull("options", options); clientNames = options.getClients(); authorizerName = options.getAuthorizers(); matcherName = options.getMatchers(); multiProfile = options.isMultiProfile(); this.vertx = vertx; this.sessionStore = sessionStore; this.config = config; final DefaultSecurityLogic<Void, VertxWebContext> securityLogic = new DefaultSecurityLogic<>(); securityLogic.setProfileManagerFactory(VertxProfileManager::new); this.securityLogic = securityLogic; }
DefaultSecurityLogic<Void, VertxWebContext> securityLogic = new DefaultSecurityLogic<>(); securityLogic.setProfileManagerFactory(VertxProfileManager::new); VertxWebContext webContext = new VertxWebContext(rc) {