|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.security.ui.SpringSecurityFilter
org.springframework.security.ui.AbstractProcessingFilter
org.springframework.security.oauth.provider.UserAuthorizationProcessingFilter
public class UserAuthorizationProcessingFilter
Processing filter for handling a request to authenticate an OAuth request token. The default processes URL
is "/oauth_authenticate_token"
This filter looks for two request parameters, one for the token id and one for the callback URL. The
default names of these paramaters are "oauth_token" and "oauth_callback", but this can be configured.
Upon successful authorization of the request token, the response is a redirect back to the callback, if supplied.
Otherwise, the response is a redirect to the default target URL. Upon failure
to authorize, the response is a redirect to failure URL.
| Field Summary | |
|---|---|
static int |
FILTER_CHAIN_ORDER
|
| Fields inherited from class org.springframework.security.ui.AbstractProcessingFilter |
|---|
authenticationDetailsSource, eventPublisher, messages, SPRING_SECURITY_LAST_EXCEPTION_KEY, SPRING_SECURITY_SAVED_REQUEST_KEY |
| Fields inherited from class org.springframework.security.ui.SpringSecurityFilter |
|---|
logger |
| Fields inherited from interface org.springframework.core.Ordered |
|---|
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
| Constructor Summary | |
|---|---|
UserAuthorizationProcessingFilter()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
org.springframework.security.Authentication |
attemptAuthentication(javax.servlet.http.HttpServletRequest request)
|
protected java.lang.String |
determineTargetUrl(javax.servlet.http.HttpServletRequest request)
|
java.lang.String |
getCallbackParameterName()
The name of the request parameter that supplies the callback URL. |
java.lang.String |
getDefaultFilterProcessesUrl()
|
int |
getOrder()
User authorization comes after the request token. |
java.lang.String |
getTokenParameterName()
The name of the request parameter that supplies the token id. |
OAuthProviderTokenServices |
getTokenServices()
Get the OAuth token services. |
protected void |
onPreAuthentication(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
void |
setCallbackParameterName(java.lang.String callbackParameterName)
The name of the request parameter that supplies the callback URL. |
void |
setTokenIdParameterName(java.lang.String tokenIdParameterName)
The name of the request parameter that supplies the token id. |
void |
setTokenServices(OAuthProviderTokenServices tokenServices)
The OAuth token services. |
| Methods inherited from class org.springframework.security.ui.AbstractProcessingFilter |
|---|
determineFailureUrl, doFilterHttp, getAllowSessionCreation, getAuthenticationDetailsSource, getAuthenticationFailureUrl, getAuthenticationManager, getDefaultTargetUrl, getFilterProcessesUrl, getRememberMeServices, getTargetUrlResolver, obtainFullSavedRequestUrl, onSuccessfulAuthentication, onUnsuccessfulAuthentication, requiresAuthentication, sendRedirect, setAllowSessionCreation, setAlwaysUseDefaultTargetUrl, setApplicationEventPublisher, setAuthenticationDetailsSource, setAuthenticationFailureUrl, setAuthenticationManager, setContinueChainBeforeSuccessfulAuthentication, setDefaultTargetUrl, setExceptionMappings, setFilterProcessesUrl, setInvalidateSessionOnSuccessfulAuthentication, setMessageSource, setMigrateInvalidatedSessionAttributes, setRememberMeServices, setServerSideRedirect, setTargetUrlResolver, setUseRelativeContext, successfulAuthentication, unsuccessfulAuthentication |
| Methods inherited from class org.springframework.security.ui.SpringSecurityFilter |
|---|
destroy, doFilter, init, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int FILTER_CHAIN_ORDER
| Constructor Detail |
|---|
public UserAuthorizationProcessingFilter()
| Method Detail |
|---|
public void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanafterPropertiesSet in class org.springframework.security.ui.AbstractProcessingFilterjava.lang.Exception
protected void onPreAuthentication(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws org.springframework.security.AuthenticationException,
java.io.IOException
onPreAuthentication in class org.springframework.security.ui.AbstractProcessingFilterorg.springframework.security.AuthenticationException
java.io.IOException
public org.springframework.security.Authentication attemptAuthentication(javax.servlet.http.HttpServletRequest request)
throws org.springframework.security.AuthenticationException
attemptAuthentication in class org.springframework.security.ui.AbstractProcessingFilterorg.springframework.security.AuthenticationExceptionprotected java.lang.String determineTargetUrl(javax.servlet.http.HttpServletRequest request)
determineTargetUrl in class org.springframework.security.ui.AbstractProcessingFilterpublic java.lang.String getDefaultFilterProcessesUrl()
getDefaultFilterProcessesUrl in class org.springframework.security.ui.AbstractProcessingFilterpublic int getOrder()
public java.lang.String getTokenParameterName()
public void setTokenIdParameterName(java.lang.String tokenIdParameterName)
tokenIdParameterName - The name of the request parameter that supplies the token id.public java.lang.String getCallbackParameterName()
public void setCallbackParameterName(java.lang.String callbackParameterName)
callbackParameterName - The name of the request parameter that supplies the callback URL.public OAuthProviderTokenServices getTokenServices()
public void setTokenServices(OAuthProviderTokenServices tokenServices)
tokenServices - The OAuth token services.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||