@ApplicationScoped public class MarmottaAuthenticationFilter extends Object implements org.apache.marmotta.platform.core.api.modules.MarmottaHttpFilter
AccessDeniedException thrown by
subsequent filters or servlets in the chain, in which case it returns an HTTP authorization request to the
client. In particular, this functionality is used by the MarmottaAccessControlFilter to restrict access to
services based on security profiles.
Author: Sebastian Schaffert| Constructor and Description |
|---|
MarmottaAuthenticationFilter() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Destroy authentication filter
|
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
Check for the presence of a "Authorization" header in the request header and authorize the user if yes.
|
String |
getPattern()
Return the pattern (regular expression) that a request URI (relative to the base URI) has to match
before triggering this filter.
|
int |
getPriority()
Return the priority of the filter.
|
void |
init(javax.servlet.FilterConfig filterConfig)
Initialise authentication filter
|
public void init(javax.servlet.FilterConfig filterConfig)
throws javax.servlet.ServletException
init in interface javax.servlet.Filterjavax.servlet.ServletExceptionpublic String getPattern()
getPattern in interface org.apache.marmotta.platform.core.api.modules.MarmottaHttpFilterpublic int getPriority()
getPriority in interface org.apache.marmotta.platform.core.api.modules.MarmottaHttpFilterpublic 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 © 2012–2018 The Apache Software Foundation. All rights reserved.