public class ProtectedResourceProcessingFilter extends OAuthProviderProcessingFilter
ignoreMissingCredentials
to false
.messages, OAUTH_PROCESSING_HANDLED
Constructor and Description |
---|
ProtectedResourceProcessingFilter() |
Modifier and Type | Method and Description |
---|---|
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.
|
afterPropertiesSet, createDetails, destroy, doFilter, fail, getAuthenticationEntryPoint, getConsumerDetailsService, getFilterProcessesUrl, getNonceServices, getProviderSupport, getSignatureMethodFactory, getTokenServices, init, isIgnoreInadequateCredentials, onNewTimestamp, parametersAreAdequate, resetPreviousAuthentication, setAllowedMethods, setAuthenticationEntryPoint, setConsumerDetailsService, setIgnoreMissingCredentials, setMessageSource, setNonceServices, setProviderSupport, setSignatureMethodFactory, setTokenServices, skipProcessing, validateAdditionalParameters, validateOAuthParams, validateSignature
protected boolean allowMethod(String method)
OAuthProviderProcessingFilter
allowMethod
in class OAuthProviderProcessingFilter
method
- 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
OAuthProviderProcessingFilter
ConsumerAuthentication
Default implementation continues the chain.onValidSignature
in class OAuthProviderProcessingFilter
request
- 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 OAuthProviderProcessingFilter
request
- The request.response
- The responsefilterChain
- The filter chainpublic void setFilterProcessesUrl(String filterProcessesUrl)
OAuthProviderProcessingFilter
setFilterProcessesUrl
in class OAuthProviderProcessingFilter
filterProcessesUrl
- 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.Copyright © 2019. All rights reserved.