/**
 * Copyright (c) 2015 Bosch Software Innovations GmbH and others.
 *
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 */
package org.eclipse.hawkbit.im.authentication;

import java.io.IOException;

import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;

/**
 * Filter to integrate into the SP security filter-chain. The filter is called
 * in any remote call through HTTP except the SP login screen. E.g. using the SP
 * REST-API. To authenticate user e.g. using Basic-Authentication implement the
 * {@link #doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse, javax.servlet.FilterChain)}
 * method.
 *
 *
 *
 */
public interface UserAuthenticationFilter {

    /**
     * @see Filter#init(FilterConfig)
     *
     * @param filterConfig
     *            the filter config
     */
    void init(FilterConfig filterConfig) throws ServletException;

    /**
     * @see Filter#doFilter(ServletRequest, ServletResponse, FilterChain)
     *
     * @param request
     *            the servlet request
     * @param response
     *            the servlet response
     * @param chain
     *            the filterchain
     * @throws IOException
     *             cannot read from request
     * @throws ServletException
     *             servlet exception
     */

    void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
            throws IOException, ServletException;

    /**
     * @see Filter#destroy()
     */
    void destroy();

}

@@ -368,37 +368,8 @@
 n;%0A%0A
-import java.io.IOException;%0A%0A
 impo
@@ -1459,79 +1459,8 @@
 ain%0A
-     * @throws IOException%0A     *             cannot read from request%0A
     
@@ -1623,40 +1623,15 @@
 ain)
-%0A            throws IOException,
+ throws
  Ser

remove unnecessary IOException from method signature