2 * Copyright (c) 2016 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
9 package org.opendaylight.aaa.shiro.filters;
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.
22 * This class is also responsible for delivering debug information; to enable these
23 * debug statements, please issue the following in the karaf shell:
25 * <code>log:set debug org.opendaylight.aaa.shiro.filters.AAAShiroFilter</code>
27 * @author Ryan Goulding (ryandgoulding@gmail.com)
28 * @see <code>javax.servlet.Filter</code>
29 * @see <code>org.apache.shiro.web.servlet.ShiroFilter</code>
31 public class AAAShiroFilter extends ShiroFilter {
33 private static final Logger LOG = LoggerFactory.getLogger(AAAShiroFilter.class);
35 public AAAShiroFilter() {
36 LOG.debug("Creating the AAAShiroFilter");
42 * Adds context clues that aid in debugging.
44 * @see org.apache.shiro.web.servlet.ShiroFilter#init()
47 public void init() throws Exception {
49 LOG.debug("Initializing the AAAShiroFilter");