@Deprecated public abstract class OAuthProviderProcessingFilter extends Object implements javax.servlet.Filter, org.springframework.beans.factory.InitializingBean, org.springframework.context.MessageSourceAware
| Modifier and Type | Field and Description |
|---|---|
protected org.springframework.context.support.MessageSourceAccessor |
messages
Deprecated.
|
static String |
OAUTH_PROCESSING_HANDLED
Deprecated.
Attribute for indicating that OAuth processing has already occurred.
|
| Constructor and Description |
|---|
OAuthProviderProcessingFilter()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet()
Deprecated.
|
protected boolean |
allowMethod(String method)
Deprecated.
Whether to allow the specified HTTP method.
|
protected Object |
createDetails(javax.servlet.http.HttpServletRequest request,
ConsumerDetails consumerDetails)
Deprecated.
Create the details for the authentication request.
|
void |
destroy()
Deprecated.
|
void |
doFilter(javax.servlet.ServletRequest servletRequest,
javax.servlet.ServletResponse servletResponse,
javax.servlet.FilterChain chain)
Deprecated.
|
protected void |
fail(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.security.core.AuthenticationException failure)
Deprecated.
Common logic for OAuth failed.
|
OAuthProcessingFilterEntryPoint |
getAuthenticationEntryPoint()
Deprecated.
The authentication entry point.
|
ConsumerDetailsService |
getConsumerDetailsService()
Deprecated.
The consumer details service.
|
String |
getFilterProcessesUrl()
Deprecated.
The URL for which this filter will be applied.
|
OAuthNonceServices |
getNonceServices()
Deprecated.
The nonce services.
|
OAuthProviderSupport |
getProviderSupport()
Deprecated.
The OAuth provider support.
|
OAuthSignatureMethodFactory |
getSignatureMethodFactory()
Deprecated.
The OAuth signature method factory.
|
OAuthProviderTokenServices |
getTokenServices()
Deprecated.
Get the OAuth token services.
|
void |
init(javax.servlet.FilterConfig ignored)
Deprecated.
|
boolean |
isIgnoreInadequateCredentials()
Deprecated.
Whether to ignore missing OAuth credentials.
|
protected void |
onNewTimestamp()
Deprecated.
Logic to be performed on a new timestamp.
|
protected abstract void |
onValidSignature(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain chain)
Deprecated.
Logic executed on valid signature.
|
protected boolean |
parametersAreAdequate(Map<String,String> oauthParams)
Deprecated.
By default, OAuth parameters are adequate if a consumer key is present.
|
protected boolean |
requiresAuthentication(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain filterChain)
Deprecated.
Whether this filter is configured to process the specified request.
|
protected void |
resetPreviousAuthentication(org.springframework.security.core.Authentication previousAuthentication)
Deprecated.
|
void |
setAllowedMethods(List<String> allowedMethods)
Deprecated.
The allowed set of HTTP methods.
|
void |
setAuthenticationEntryPoint(OAuthProcessingFilterEntryPoint authenticationEntryPoint)
Deprecated.
The authentication entry point.
|
void |
setConsumerDetailsService(ConsumerDetailsService consumerDetailsService)
Deprecated.
The consumer details service.
|
void |
setFilterProcessesUrl(String filterProcessesUrl)
Deprecated.
The URL for which this filter will be applied.
|
void |
setIgnoreMissingCredentials(boolean ignoreMissingCredentials)
Deprecated.
Whether to ignore missing OAuth credentials.
|
void |
setMessageSource(org.springframework.context.MessageSource messageSource)
Deprecated.
Set the message source.
|
void |
setNonceServices(OAuthNonceServices nonceServices)
Deprecated.
The nonce services.
|
void |
setProviderSupport(OAuthProviderSupport providerSupport)
Deprecated.
The OAuth provider support.
|
void |
setSignatureMethodFactory(OAuthSignatureMethodFactory signatureMethodFactory)
Deprecated.
The OAuth signature method factory.
|
void |
setTokenServices(OAuthProviderTokenServices tokenServices)
Deprecated.
The OAuth token services.
|
protected boolean |
skipProcessing(javax.servlet.http.HttpServletRequest request)
Deprecated.
Whether to skip processing for the specified request.
|
protected void |
validateAdditionalParameters(ConsumerDetails consumerDetails,
Map<String,String> oauthParams)
Deprecated.
Do any additional validation checks for the specified oauth params.
|
protected void |
validateOAuthParams(ConsumerDetails consumerDetails,
Map<String,String> oauthParams)
Deprecated.
Validates the OAuth parameters for the given consumer.
|
protected void |
validateSignature(ConsumerAuthentication authentication)
Deprecated.
Validate the signature of the request given the authentication request.
|
public static final String OAUTH_PROCESSING_HANDLED
protected org.springframework.context.support.MessageSourceAccessor messages
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic 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.Filterpublic void doFilter(javax.servlet.ServletRequest servletRequest,
javax.servlet.ServletResponse servletResponse,
javax.servlet.FilterChain chain)
throws IOException,
javax.servlet.ServletException
doFilter in interface javax.servlet.FilterIOExceptionjavax.servlet.ServletExceptionprotected boolean parametersAreAdequate(Map<String,String> oauthParams)
oauthParams - The oauth params.protected void resetPreviousAuthentication(org.springframework.security.core.Authentication previousAuthentication)
protected Object createDetails(javax.servlet.http.HttpServletRequest request, ConsumerDetails consumerDetails)
request - The request.consumerDetails - The consumer details.protected boolean allowMethod(String method)
method - The HTTP method to check for allowing.protected void validateSignature(ConsumerAuthentication authentication) throws org.springframework.security.core.AuthenticationException
authentication - The authentication request.org.springframework.security.core.AuthenticationExceptionprotected abstract void onValidSignature(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain chain)
throws IOException,
javax.servlet.ServletException
ConsumerAuthentication
Default implementation continues the chain.request - The request.response - The responsechain - The filter chain.IOExceptionjavax.servlet.ServletExceptionprotected void validateOAuthParams(ConsumerDetails consumerDetails, Map<String,String> oauthParams) throws InvalidOAuthParametersException
consumerDetails - The consumer details.oauthParams - The OAuth parameters to validate.InvalidOAuthParametersException - If the OAuth parameters are invalid.protected void validateAdditionalParameters(ConsumerDetails consumerDetails, Map<String,String> oauthParams)
consumerDetails - The consumer details.oauthParams - The params.protected void onNewTimestamp()
throws org.springframework.security.core.AuthenticationException
org.springframework.security.core.AuthenticationException - If the timestamp shouldn't be new.protected void fail(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.security.core.AuthenticationException failure)
throws IOException,
javax.servlet.ServletException
request - The request.response - The response.failure - The failure.IOException - thrown when there's an underlying IO exceptionjavax.servlet.ServletException - thrown in the case of an underlying Servlet exceptionprotected boolean requiresAuthentication(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain filterChain)
request - The request.response - The responsefilterChain - The filter chainprotected boolean skipProcessing(javax.servlet.http.HttpServletRequest request)
request - The request.public OAuthProcessingFilterEntryPoint getAuthenticationEntryPoint()
@Autowired(required=false) public void setAuthenticationEntryPoint(OAuthProcessingFilterEntryPoint authenticationEntryPoint)
authenticationEntryPoint - The authentication entry point.public ConsumerDetailsService getConsumerDetailsService()
@Autowired public void setConsumerDetailsService(ConsumerDetailsService consumerDetailsService)
consumerDetailsService - The consumer details service.public OAuthNonceServices getNonceServices()
@Autowired(required=false) public void setNonceServices(OAuthNonceServices nonceServices)
nonceServices - The nonce services.public OAuthProviderTokenServices getTokenServices()
@Autowired public void setTokenServices(OAuthProviderTokenServices tokenServices)
tokenServices - The OAuth token services.public String getFilterProcessesUrl()
public void setFilterProcessesUrl(String filterProcessesUrl)
filterProcessesUrl - The URL for which this filter will be applied.public void setMessageSource(org.springframework.context.MessageSource messageSource)
setMessageSource in interface org.springframework.context.MessageSourceAwaremessageSource - The message source.public OAuthProviderSupport getProviderSupport()
@Autowired(required=false) public void setProviderSupport(OAuthProviderSupport providerSupport)
providerSupport - The OAuth provider support.public OAuthSignatureMethodFactory getSignatureMethodFactory()
@Autowired(required=false) public void setSignatureMethodFactory(OAuthSignatureMethodFactory signatureMethodFactory)
signatureMethodFactory - The OAuth signature method factory.public boolean isIgnoreInadequateCredentials()
public void setIgnoreMissingCredentials(boolean ignoreMissingCredentials)
ignoreMissingCredentials - Whether to ignore missing OAuth credentials.Copyright © 2020. All rights reserved.