CWTRPC
0.9.0

de.itsvs.cwtrpc.security
Class AbstractRpcAuthenticationProcessingFilter

java.lang.Object
  extended by org.springframework.web.filter.GenericFilterBean
      extended by de.itsvs.cwtrpc.security.AbstractRpcProcessingFilter
          extended by de.itsvs.cwtrpc.security.AbstractRpcAuthenticationProcessingFilter
All Implemented Interfaces:
Filter, BeanFactoryAware, BeanNameAware, DisposableBean, InitializingBean, ApplicationEventPublisherAware, ServletContextAware
Direct Known Subclasses:
UsernamePasswordRpcAuthenticationFilter

public abstract class AbstractRpcAuthenticationProcessingFilter
extends AbstractRpcProcessingFilter
implements ApplicationEventPublisherAware

Since:
0.9
Author:
Volker Schmidt

Field Summary
 
Fields inherited from class de.itsvs.cwtrpc.security.AbstractRpcProcessingFilter
GWT_RPC_REQUEST_ATTR_NAME
 
Fields inherited from class org.springframework.web.filter.GenericFilterBean
logger
 
Constructor Summary
AbstractRpcAuthenticationProcessingFilter()
           
 
Method Summary
 void afterPropertiesSet()
           
protected  void applySessionAuthenticationStrategy(Authentication authentication, HttpServletRequest request, HttpServletResponse response)
           
 Authentication attemptAuthentication(HttpServletRequest request, HttpServletResponse response)
           
protected abstract  Authentication createAuthenticationToken(HttpServletRequest servletRequest, RPCRequest rpcRequest)
           
 ApplicationEventPublisher getApplicationEventPublisher()
           
 AuthenticationDetailsSource getAuthenticationDetailsSource()
           
 AuthenticationFailureHandler getAuthenticationFailureHandler()
           
 AuthenticationManager getAuthenticationManager()
           
 AuthenticationSuccessHandler getAuthenticationSuccessHandler()
           
 RememberMeServices getRememberMeServices()
           
 RpcHttpSessionStrategy getRpcHttpSessionStrategy()
           
 SessionAuthenticationStrategy getSessionAuthenticationStrategy()
           
protected  void process(HttpServletRequest request, HttpServletResponse response, FilterChain chain)
           
 void setApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher)
           
 void setAuthenticationDetailsSource(AuthenticationDetailsSource authenticationDetailsSource)
           
 void setAuthenticationFailureHandler(AuthenticationFailureHandler authenticationFailureHandler)
           
 void setAuthenticationManager(AuthenticationManager authenticationManager)
           
 void setAuthenticationSuccessHandler(AuthenticationSuccessHandler authenticationSuccessHandler)
           
 void setRememberMeServices(RememberMeServices rememberMeServices)
           
 void setRpcHttpSessionStrategy(RpcHttpSessionStrategy rpcHttpSessionStrategy)
           
 void setSessionAuthenticationStrategy(SessionAuthenticationStrategy sessionAuthenticationStrategy)
           
protected  void successfulAuthentication(HttpServletRequest request, HttpServletResponse response, Authentication authentication)
           
protected  void successfulAuthenticationEnd(HttpServletRequest request, HttpServletResponse response, Authentication authentication)
           
protected  void unsuccessfulAuthentication(HttpServletRequest request, HttpServletResponse response, AuthenticationException exception)
           
 
Methods inherited from class de.itsvs.cwtrpc.security.AbstractRpcProcessingFilter
doFilter, filterProcesses, getBeanFactory, getFilterProcessesUrl, getMethodName, getRpcRequest, getSerializationPolicyProvider, getServiceInterface, invalidateSession, isPostOnly, matchesFilterProcessesUrl, matchesMethodName, readContent, readRpcRequest, setBeanFactory, setFilterProcessesUrl, setMethodName, setPostOnly, setSerializationPolicyProvider, setServiceInterface
 
Methods inherited from class org.springframework.web.filter.GenericFilterBean
addRequiredProperty, destroy, getFilterConfig, getFilterName, getServletContext, init, initBeanWrapper, initFilterBean, setBeanName, setServletContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractRpcAuthenticationProcessingFilter

public AbstractRpcAuthenticationProcessingFilter()
Method Detail

getApplicationEventPublisher

public ApplicationEventPublisher getApplicationEventPublisher()

setApplicationEventPublisher

public void setApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher)
Specified by:
setApplicationEventPublisher in interface ApplicationEventPublisherAware

getAuthenticationManager

public AuthenticationManager getAuthenticationManager()

setAuthenticationManager

public void setAuthenticationManager(AuthenticationManager authenticationManager)

getAuthenticationSuccessHandler

public AuthenticationSuccessHandler getAuthenticationSuccessHandler()

setAuthenticationSuccessHandler

public void setAuthenticationSuccessHandler(AuthenticationSuccessHandler authenticationSuccessHandler)

getAuthenticationFailureHandler

public AuthenticationFailureHandler getAuthenticationFailureHandler()

setAuthenticationFailureHandler

public void setAuthenticationFailureHandler(AuthenticationFailureHandler authenticationFailureHandler)

getAuthenticationDetailsSource

public AuthenticationDetailsSource getAuthenticationDetailsSource()

setAuthenticationDetailsSource

public void setAuthenticationDetailsSource(AuthenticationDetailsSource authenticationDetailsSource)

getRememberMeServices

public RememberMeServices getRememberMeServices()

setRememberMeServices

public void setRememberMeServices(RememberMeServices rememberMeServices)

getSessionAuthenticationStrategy

public SessionAuthenticationStrategy getSessionAuthenticationStrategy()

setSessionAuthenticationStrategy

public void setSessionAuthenticationStrategy(SessionAuthenticationStrategy sessionAuthenticationStrategy)

getRpcHttpSessionStrategy

public RpcHttpSessionStrategy getRpcHttpSessionStrategy()

setRpcHttpSessionStrategy

public void setRpcHttpSessionStrategy(RpcHttpSessionStrategy rpcHttpSessionStrategy)

afterPropertiesSet

public void afterPropertiesSet()
                        throws ServletException
Specified by:
afterPropertiesSet in interface InitializingBean
Overrides:
afterPropertiesSet in class AbstractRpcProcessingFilter
Throws:
ServletException

process

protected void process(HttpServletRequest request,
                       HttpServletResponse response,
                       FilterChain chain)
                throws IOException,
                       ServletException
Specified by:
process in class AbstractRpcProcessingFilter
Throws:
IOException
ServletException

attemptAuthentication

public Authentication attemptAuthentication(HttpServletRequest request,
                                            HttpServletResponse response)
                                     throws AuthenticationException,
                                            IOException,
                                            ServletException
Throws:
AuthenticationException
IOException
ServletException

createAuthenticationToken

protected abstract Authentication createAuthenticationToken(HttpServletRequest servletRequest,
                                                            RPCRequest rpcRequest)
                                                     throws AuthenticationException,
                                                            IOException,
                                                            ServletException
Throws:
AuthenticationException
IOException
ServletException

applySessionAuthenticationStrategy

protected void applySessionAuthenticationStrategy(Authentication authentication,
                                                  HttpServletRequest request,
                                                  HttpServletResponse response)
                                           throws IOException,
                                                  ServletException
Throws:
IOException
ServletException

unsuccessfulAuthentication

protected void unsuccessfulAuthentication(HttpServletRequest request,
                                          HttpServletResponse response,
                                          AuthenticationException exception)
                                   throws IOException,
                                          ServletException
Throws:
IOException
ServletException

successfulAuthentication

protected void successfulAuthentication(HttpServletRequest request,
                                        HttpServletResponse response,
                                        Authentication authentication)
                                 throws IOException,
                                        ServletException
Throws:
IOException
ServletException

successfulAuthenticationEnd

protected void successfulAuthenticationEnd(HttpServletRequest request,
                                           HttpServletResponse response,
                                           Authentication authentication)
                                    throws IOException,
                                           ServletException
Throws:
IOException
ServletException

Controlled
Web Toolkit RPC

Copyright 2011 IT Services VS GmbH
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.