|
||||||||||
| 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 org.springframework.context.support.MessageSourceAccessor |
messages
|
| Constructor Summary | |
|---|---|
OAuthConsumerProcessingFilter()
|
|
| Method Summary | |
|---|---|
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(org.springframework.context.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 org.springframework.context.support.MessageSourceAccessor messages
| Constructor Detail |
|---|
public OAuthConsumerProcessingFilter()
| Method Detail |
|---|
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanException
public void init(javax.servlet.FilterConfig ignored)
throws javax.servlet.ServletException
init in interface javax.servlet.Filterjavax.servlet.ServletExceptionpublic 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.FilterIOException
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 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(org.springframework.context.MessageSource messageSource)
setMessageSource in interface org.springframework.context.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 | |||||||||