public class AccessTokenProcessingFilter extends OAuthProviderProcessingFilter
messages, OAUTH_PROCESSING_HANDLED
Constructor and Description |
---|
AccessTokenProcessingFilter() |
Modifier and Type | Method and Description |
---|---|
protected OAuthProviderToken |
createOAuthToken(ConsumerAuthentication authentication) |
String |
getResponseContentType()
The content type of the response.
|
boolean |
isRequire10a()
Whether to require 1.0a support.
|
protected void |
onNewTimestamp()
Logic to be performed on a new timestamp.
|
protected void |
onValidSignature(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain chain)
Logic executed on valid signature.
|
void |
setRequire10a(boolean require10a)
Whether to require 1.0a support.
|
void |
setResponseContentType(String responseContentType)
The content type of the response.
|
protected void |
validateAdditionalParameters(ConsumerDetails consumerDetails,
Map<String,String> oauthParams)
Do any additional validation checks for the specified oauth params.
|
afterPropertiesSet, allowMethod, createDetails, destroy, doFilter, fail, getAuthenticationEntryPoint, getConsumerDetailsService, getFilterProcessesUrl, getNonceServices, getProviderSupport, getSignatureMethodFactory, getTokenServices, init, isIgnoreInadequateCredentials, parametersAreAdequate, requiresAuthentication, resetPreviousAuthentication, setAllowedMethods, setAuthenticationEntryPoint, setConsumerDetailsService, setFilterProcessesUrl, setIgnoreMissingCredentials, setMessageSource, setNonceServices, setProviderSupport, setSignatureMethodFactory, setTokenServices, skipProcessing, validateOAuthParams, validateSignature
protected OAuthProviderToken createOAuthToken(ConsumerAuthentication authentication)
protected void validateAdditionalParameters(ConsumerDetails consumerDetails, Map<String,String> oauthParams)
OAuthProviderProcessingFilter
validateAdditionalParameters
in class OAuthProviderProcessingFilter
consumerDetails
- The consumer details.oauthParams
- The params.protected void onValidSignature(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain chain) throws IOException
OAuthProviderProcessingFilter
ConsumerAuthentication
Default implementation continues the chain.onValidSignature
in class OAuthProviderProcessingFilter
request
- The request.response
- The responsechain
- The filter chain.IOException
protected void onNewTimestamp() throws org.springframework.security.core.AuthenticationException
OAuthProviderProcessingFilter
onNewTimestamp
in class OAuthProviderProcessingFilter
org.springframework.security.core.AuthenticationException
- If the timestamp shouldn't be new.public String getResponseContentType()
public void setResponseContentType(String responseContentType)
responseContentType
- The content type of the response.public boolean isRequire10a()
public void setRequire10a(boolean require10a)
require10a
- Whether to require 1.0a support.Copyright © 2019. All rights reserved.