|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.security.oauth.consumer.filter.OAuthConsumerProcessingFilter
public class OAuthConsumerProcessingFilter
OAuth consumer processing filter. This filter should be applied to requests for OAuth protected resources (see OAuth Core 1.0).
OAuthConsumerTokens.
| Field Summary | |
|---|---|
protected MessageSourceAccessor |
messages
|
| Constructor Summary | |
|---|---|
OAuthConsumerProcessingFilter()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
void |
destroy()
|
void |
doFilter(ServletRequest servletRequest,
ServletResponse servletResponse,
FilterChain chain)
|
protected Set<String> |
getAccessTokenDependencies(HttpServletRequest request,
HttpServletResponse response,
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(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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected MessageSourceAccessor messages
| Constructor Detail |
|---|
public OAuthConsumerProcessingFilter()
| Method Detail |
|---|
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface InitializingBeanException
public void init(FilterConfig ignored)
throws ServletException
init in interface FilterServletExceptionpublic void destroy()
destroy in interface Filter
public void doFilter(ServletRequest servletRequest,
ServletResponse servletResponse,
FilterChain chain)
throws IOException,
ServletException
doFilter in interface FilterIOException
ServletException
protected Set<String> getAccessTokenDependencies(HttpServletRequest request,
HttpServletResponse response,
FilterChain filterChain)
resource ids
for which an OAuth access token is required.
request - The request.response - The responsefilterChain - The filter chain
public 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 MessageSourceAwaremessageSource - The message source.public boolean isRequireAuthenticated()
public void setRequireAuthenticated(boolean requireAuthenticated)
requireAuthenticated - Whether to require the current authentication to be authenticated.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||