@Deprecated public class OAuth2ClientContextFilter extends Object implements javax.servlet.Filter, org.springframework.beans.factory.InitializingBean
| Modifier and Type | Field and Description |
|---|---|
static String |
CURRENT_URI
Deprecated.
Key in request attributes for the current URI in case it is needed by
rest client code that needs to send a redirect URI to an authorization
server.
|
| Constructor and Description |
|---|
OAuth2ClientContextFilter()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet()
Deprecated.
|
protected String |
calculateCurrentUri(javax.servlet.http.HttpServletRequest request)
Deprecated.
Calculate the current URI given the request.
|
void |
destroy()
Deprecated.
|
void |
doFilter(javax.servlet.ServletRequest servletRequest,
javax.servlet.ServletResponse servletResponse,
javax.servlet.FilterChain chain)
Deprecated.
|
void |
init(javax.servlet.FilterConfig filterConfig)
Deprecated.
|
protected void |
redirectUser(UserRedirectRequiredException e,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Deprecated.
Redirect the user according to the specified exception.
|
void |
setRedirectStrategy(org.springframework.security.web.RedirectStrategy redirectStrategy)
Deprecated.
|
void |
setThrowableAnalyzer(org.springframework.security.web.util.ThrowableAnalyzer throwableAnalyzer)
Deprecated.
|
public static final String CURRENT_URI
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic void doFilter(javax.servlet.ServletRequest servletRequest,
javax.servlet.ServletResponse servletResponse,
javax.servlet.FilterChain chain)
throws IOException,
javax.servlet.ServletException
doFilter in interface javax.servlet.FilterIOExceptionjavax.servlet.ServletExceptionprotected void redirectUser(UserRedirectRequiredException e, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
e - The user redirect exception.request - The request.response - The response.IOExceptionprotected String calculateCurrentUri(javax.servlet.http.HttpServletRequest request) throws UnsupportedEncodingException
request - The request.UnsupportedEncodingExceptionpublic void init(javax.servlet.FilterConfig filterConfig)
throws javax.servlet.ServletException
init in interface javax.servlet.Filterjavax.servlet.ServletExceptionpublic void destroy()
destroy in interface javax.servlet.Filterpublic void setThrowableAnalyzer(org.springframework.security.web.util.ThrowableAnalyzer throwableAnalyzer)
public void setRedirectStrategy(org.springframework.security.web.RedirectStrategy redirectStrategy)
Copyright © 2020. All rights reserved.