public class OAuthConsumerProcessingFilter extends Object implements javax.servlet.Filter, InitializingBean, MessageSourceAware
OAuthConsumerToken
s.Modifier and Type | Field and Description |
---|---|
protected MessageSourceAccessor |
messages |
Constructor and Description |
---|
OAuthConsumerProcessingFilter() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
void |
destroy() |
void |
doFilter(javax.servlet.ServletRequest servletRequest,
javax.servlet.ServletResponse servletResponse,
javax.servlet.FilterChain chain) |
protected Set<String> |
getAccessTokenDependencies(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain filterChain)
Loads the access token dependencies for the given request.
|
org.springframework.security.web.access.intercept.FilterInvocationSecurityMetadataSource |
getObjectDefinitionSource()
The filter invocation definition source.
|
ProtectedResourceDetailsService |
getProtectedResourceDetailsService()
The protected resource details service.
|
void |
init(javax.servlet.FilterConfig ignored) |
boolean |
isRequireAuthenticated()
Whether to require the current authentication to be authenticated.
|
void |
setMessageSource(MessageSource messageSource)
Set the message source.
|
void |
setObjectDefinitionSource(org.springframework.security.web.access.intercept.FilterInvocationSecurityMetadataSource objectDefinitionSource)
The filter invocation definition source.
|
void |
setProtectedResourceDetailsService(ProtectedResourceDetailsService protectedResourceDetailsService)
The protected resource details service.
|
void |
setRequireAuthenticated(boolean requireAuthenticated)
Whether to require the current authentication to be authenticated.
|
protected MessageSourceAccessor messages
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface InitializingBean
Exception
public void init(javax.servlet.FilterConfig ignored) throws javax.servlet.ServletException
init
in interface javax.servlet.Filter
javax.servlet.ServletException
public void destroy()
destroy
in interface javax.servlet.Filter
public void doFilter(javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException
doFilter
in interface javax.servlet.Filter
IOException
javax.servlet.ServletException
protected Set<String> getAccessTokenDependencies(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain filterChain)
resource ids
for which an OAuth access token is required.request
- The request.response
- The responsefilterChain
- The filter chainpublic ProtectedResourceDetailsService getProtectedResourceDetailsService()
@Autowired public void setProtectedResourceDetailsService(ProtectedResourceDetailsService protectedResourceDetailsService)
protectedResourceDetailsService
- The protected resource details service.public org.springframework.security.web.access.intercept.FilterInvocationSecurityMetadataSource getObjectDefinitionSource()
public void setObjectDefinitionSource(org.springframework.security.web.access.intercept.FilterInvocationSecurityMetadataSource objectDefinitionSource)
objectDefinitionSource
- The filter invocation definition source.public void setMessageSource(MessageSource messageSource)
setMessageSource
in interface MessageSourceAware
messageSource
- The message source.public boolean isRequireAuthenticated()
public void setRequireAuthenticated(boolean requireAuthenticated)
requireAuthenticated
- Whether to require the current authentication to be authenticated.Copyright © 2019. All rights reserved.