no.sesat.search.http.filters
Class MD5ProtectedParametersFilter
java.lang.Object
no.sesat.search.http.filters.MD5ProtectedParametersFilter
- All Implemented Interfaces:
- Filter
public final class MD5ProtectedParametersFilter
- extends Object
- implements Filter
Generalised way to protect parameter values through md5 signings.
A skin must define the properties (in configuration.properties):
md5.secret and md5.protectedParameters
Any secret can be chosen. Any parameter matches those listed in md5.protectedParameters (separated by commas)
are expected to have a paired parameter (called <parameterName>_x) that represents the signing of the
original parameter value. If this second parameter does not exist or it's not an accurate signing of the original
parameter then the request immediately returns with a 404 response error.
- Version:
- $Id: MD5ProtectedParametersFilter.java 7225 2009-04-09 00:32:20Z ssmiweve $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MD5ProtectedParametersFilter
public MD5ProtectedParametersFilter()
init
public void init(FilterConfig filterConfig)
throws ServletException
- Specified by:
init in interface Filter
- Throws:
ServletException
doFilter
public void doFilter(ServletRequest servletRequest,
ServletResponse servletResponse,
FilterChain filterChain)
throws IOException,
ServletException
- Specified by:
doFilter in interface Filter
- Throws:
IOException
ServletException
destroy
public void destroy()
- Specified by:
destroy in interface Filter
Copyright © 2005-2009 Schibsted ASA. All Rights Reserved.