@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.Filter
javax.servlet.ServletException
public String getPattern()
getPattern
in interface org.apache.marmotta.platform.core.api.modules.MarmottaHttpFilter
public int getPriority()
getPriority
in interface org.apache.marmotta.platform.core.api.modules.MarmottaHttpFilter
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException
doFilter
in interface javax.servlet.Filter
IOException
javax.servlet.ServletException
public void destroy()
destroy
in interface javax.servlet.Filter
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.