public class BokuHttpAuthFilter extends Object implements javax.servlet.Filter
AuthorizationContextProvider.| Constructor and Description |
|---|
BokuHttpAuthFilter()
Servlet-style constructor, uses whatever
ServerAuthorizationComponentsFactory.getInstance() returns.See init(javax.servlet.FilterConfig) for details on configuration params. |
BokuHttpAuthFilter(ThreadLocalServletRequestContextHolder threadLocalRequestContextHolder,
HttpMessageSigner httpMessageSigner)
Constructor for users supporting dependency injection.
(Either via manual filter registration, or using a shim such as org.springframework.web.filter.DelegatingFilterProxy) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain) |
void |
init(javax.servlet.FilterConfig filterConfig)
Servlet init method.
Per-instance params: com.boku.auth.http.server.response.signed-headers: comma-separated list of headers to sign if they are present in the response. |
public BokuHttpAuthFilter(ThreadLocalServletRequestContextHolder threadLocalRequestContextHolder, HttpMessageSigner httpMessageSigner)
public BokuHttpAuthFilter()
ServerAuthorizationComponentsFactory.getInstance() returns.init(javax.servlet.FilterConfig) for details on configuration params.init(FilterConfig)public void init(javax.servlet.FilterConfig filterConfig)
KeyProvider. One of 'PKCS12' (default, get keys from a PKCS12 key store) or 'custom' (get any kind of KeyProvider instance from a static factory method).KeystoreKeyProvider for how to populate this file.init in interface javax.servlet.FilterfilterConfig - The FilterConfig containing init paramspublic void doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
throws IOException,
javax.servlet.ServletException
doFilter in interface javax.servlet.FilterIOExceptionjavax.servlet.ServletExceptionpublic void destroy()
destroy in interface javax.servlet.FilterCopyright © 2020. All rights reserved.