|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.security.oauth.provider.filter.OAuthProviderProcessingFilter
org.springframework.security.oauth.provider.filter.ProtectedResourceProcessingFilter
public class ProtectedResourceProcessingFilter
Processing filter for requests to protected resources. This filter attempts to load the OAuth authentication
request into the security context using a presented access token. Default behavior of this filter allows
the request to continue even if OAuth credentials are not presented (allowing another filter to potentially
load a different authentication request into the security context). If the protected resource is available
ONLY via OAuth access token, set ignoreMissingCredentials to false.
| Field Summary |
|---|
| Fields inherited from class org.springframework.security.oauth.provider.filter.OAuthProviderProcessingFilter |
|---|
messages, OAUTH_PROCESSING_HANDLED |
| Constructor Summary | |
|---|---|
ProtectedResourceProcessingFilter()
|
|
| Method Summary | |
|---|---|
protected boolean |
allowMethod(String method)
Whether to allow the specified HTTP method. |
OAuthAuthenticationHandler |
getAuthHandler()
The authentication handler. |
boolean |
isAllowAllMethods()
Whether to allow all methods. |
protected void |
onValidSignature(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain chain)
Logic executed on valid signature. |
protected boolean |
requiresAuthentication(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain filterChain)
Whether this filter is configured to process the specified request. |
void |
setAllowAllMethods(boolean allowAllMethods)
Whether to allow all methods. |
void |
setAuthHandler(OAuthAuthenticationHandler authHandler)
The authentication handler. |
void |
setFilterProcessesUrl(String filterProcessesUrl)
The URL for which this filter will be applied. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProtectedResourceProcessingFilter()
| Method Detail |
|---|
protected boolean allowMethod(String method)
OAuthProviderProcessingFilter
allowMethod in class OAuthProviderProcessingFiltermethod - The HTTP method to check for allowing.
protected void onValidSignature(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain chain)
throws IOException,
javax.servlet.ServletException
OAuthProviderProcessingFilterConsumerAuthentication.
onValidSignature in class OAuthProviderProcessingFilterrequest - The request.response - The responsechain - The filter chain.
IOException
javax.servlet.ServletException
protected boolean requiresAuthentication(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain filterChain)
OAuthProviderProcessingFilter
requiresAuthentication in class OAuthProviderProcessingFilterrequest - The request.response - The responsefilterChain - The filter chain
public void setFilterProcessesUrl(String filterProcessesUrl)
OAuthProviderProcessingFilter
setFilterProcessesUrl in class OAuthProviderProcessingFilterfilterProcessesUrl - The URL for which this filter will be applied.public boolean isAllowAllMethods()
public void setAllowAllMethods(boolean allowAllMethods)
allowAllMethods - Whether to allow all methods.public OAuthAuthenticationHandler getAuthHandler()
public void setAuthHandler(OAuthAuthenticationHandler authHandler)
authHandler - The authentication handler.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||