com.metamatrix.soap.servlet.filter
Class BasicAuthInterceptor

java.lang.Object
  extended by com.metamatrix.soap.servlet.filter.BasicAuthInterceptor
All Implemented Interfaces:
javax.servlet.Filter

public class BasicAuthInterceptor
extends java.lang.Object
implements javax.servlet.Filter

This servlet filter checks to make sure we have a authentication header. This is needed when using HTTP Basic to circumvent preemptive authentication and avoids the requirement of a realm configuration. It essentially serves the role of a passthrough realm.


Field Summary
static java.lang.String BOGUS_REALM_VALUE
           
static java.lang.String HTTP_AUTHORIZATION_HEADER
           
static java.lang.String WWW_AUTHENTICATE_HEADER
           
 
Constructor Summary
BasicAuthInterceptor()
           
 
Method Summary
 void destroy()
           
 void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain)
           
 void init(javax.servlet.FilterConfig arg0)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WWW_AUTHENTICATE_HEADER

public static final java.lang.String WWW_AUTHENTICATE_HEADER
See Also:
Constant Field Values

HTTP_AUTHORIZATION_HEADER

public static final java.lang.String HTTP_AUTHORIZATION_HEADER
See Also:
Constant Field Values

BOGUS_REALM_VALUE

public static final java.lang.String BOGUS_REALM_VALUE
See Also:
Constant Field Values
Constructor Detail

BasicAuthInterceptor

public BasicAuthInterceptor()
Method Detail

doFilter

public void doFilter(javax.servlet.ServletRequest request,
                     javax.servlet.ServletResponse response,
                     javax.servlet.FilterChain chain)
              throws java.io.IOException,
                     javax.servlet.ServletException
Specified by:
doFilter in interface javax.servlet.Filter
Throws:
java.io.IOException
javax.servlet.ServletException
See Also:
Filter.doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse, javax.servlet.FilterChain)

destroy

public void destroy()
Specified by:
destroy in interface javax.servlet.Filter

init

public void init(javax.servlet.FilterConfig arg0)
          throws javax.servlet.ServletException
Specified by:
init in interface javax.servlet.Filter
Throws:
javax.servlet.ServletException


Copyright © 2009. All Rights Reserved.