本文整理汇总了Java中org.camunda.bpm.webapp.impl.security.auth.AuthenticationFilter类的典型用法代码示例。如果您正苦于以下问题:Java AuthenticationFilter类的具体用法?Java AuthenticationFilter怎么用?Java AuthenticationFilter使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
AuthenticationFilter类属于org.camunda.bpm.webapp.impl.security.auth包,在下文中一共展示了AuthenticationFilter类的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onStartup
import org.camunda.bpm.webapp.impl.security.auth.AuthenticationFilter; //导入依赖的package包/类
@Override
public void onStartup(ServletContext servletContext) throws ServletException {
this.servletContext = servletContext;
servletContext.setSessionTrackingModes(Collections.singleton(SessionTrackingMode.COOKIE));
servletContext.addListener(new WelcomeContainerBootstrap());
servletContext.addListener(new CockpitContainerBootstrap());
servletContext.addListener(new AdminContainerBootstrap());
servletContext.addListener(new TasklistContainerBootstrap());
registerFilter("Authentication Filter", AuthenticationFilter.class, "/*");
registerFilter("Security Filter", LazySecurityFilter.class, singletonMap("configFile", properties.getWebapp().getSecurityConfigFile()), "/*");
registerFilter("Engines Filter", LazyProcessEnginesFilter.class, "/app/*");
registerFilter("CacheControlFilter", CacheControlFilter.class, "/api/*");
registerServlet("Cockpit Api", CockpitApplication.class, "/api/cockpit/*");
registerServlet("Admin Api", AdminApplication.class, "/api/admin/*");
registerServlet("Tasklist Api", TasklistApplication.class, "/api/tasklist/*");
registerServlet("Engine Api", EngineRestApplication.class, "/api/engine/*");
}