2 * Copyright (c) 2016 - 2017 Brocade Communications Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.aaa.shiro.filters;
10 import javax.servlet.Filter;
11 import org.apache.shiro.web.servlet.ShiroFilter;
12 import org.slf4j.Logger;
13 import org.slf4j.LoggerFactory;
16 * The default AAA JAX-RS 1.X Web Filter. Unlike AAAFilter, which is aimed towards
17 * supporting RESTCONF and its existing API mechanisms, AAAShiroFilter is a generic
18 * <code>ShiroFilter</code> for use with any other ODL Servlets. The main difference
19 * is that <code>AAAFilter</code> was designed to support the existing noauth
20 * mechanism, while this filter cannot be disabled.
23 * This class is also responsible for delivering debug information; to enable these
24 * debug statements, please issue the following in the karaf shell:
26 * <code>log:set DEBUG AAAShiroFilter</code>
31 public final class AAAShiroFilter extends ShiroFilter {
32 private static final Logger LOG = LoggerFactory.getLogger(AAAShiroFilter.class);
34 public AAAShiroFilter() {
35 LOG.debug("Creating the AAAShiroFilter");
39 public void init() throws Exception {
41 LOG.debug("Initializing the AAAShiroFilter");