|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.security.oauth.provider.OAuthProviderProcessingFilter
org.springframework.security.oauth.provider.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 requireOAuthCredentials to true.
| Field Summary | |
|---|---|
static int |
FILTER_CHAIN_ORDER
|
| Fields inherited from class org.springframework.security.oauth.provider.OAuthProviderProcessingFilter |
|---|
messages, OAUTH_PROCESSING_HANDLED |
| Fields inherited from interface org.springframework.core.Ordered |
|---|
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
| Constructor Summary | |
|---|---|
ProtectedResourceProcessingFilter()
|
|
| Method Summary | |
|---|---|
protected boolean |
allowMethod(java.lang.String method)
Whether to allow the specified HTTP method. |
int |
getOrder()
The protected resource filtering happens after the access token filtering. |
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 |
setFilterProcessesUrl(java.lang.String filterProcessesUrl)
The URL for which this filter will be applied. |
protected void |
validateOAuthParams(ConsumerDetails consumerDetails,
java.util.Map<java.lang.String,java.lang.String> oauthParams)
Validates the OAuth parameters for the given consumer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int FILTER_CHAIN_ORDER
| Constructor Detail |
|---|
public ProtectedResourceProcessingFilter()
| Method Detail |
|---|
protected boolean allowMethod(java.lang.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 java.io.IOException,
javax.servlet.ServletException
OAuthProviderProcessingFilterConsumerAuthentication.
onValidSignature in class OAuthProviderProcessingFilterrequest - The request.response - The responsechain - The filter chain.
java.io.IOException
javax.servlet.ServletException
protected void validateOAuthParams(ConsumerDetails consumerDetails,
java.util.Map<java.lang.String,java.lang.String> oauthParams)
throws InvalidOAuthParametersException
OAuthProviderProcessingFilter
validateOAuthParams in class OAuthProviderProcessingFilterconsumerDetails - The consumer details.oauthParams - The OAuth parameters to validate.
InvalidOAuthParametersException - If the OAuth parameters are invalid.
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(java.lang.String filterProcessesUrl)
OAuthProviderProcessingFilter
setFilterProcessesUrl in class OAuthProviderProcessingFilterfilterProcessesUrl - The URL for which this filter will be applied.public int getOrder()
public boolean isAllowAllMethods()
public void setAllowAllMethods(boolean allowAllMethods)
allowAllMethods - Whether to allow all methods.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||