CWTRPC
0.9.0

de.itsvs.cwtrpc.security
Class UsernamePasswordRpcAuthenticationFilter

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

public class UsernamePasswordRpcAuthenticationFilter
extends AbstractRpcAuthenticationProcessingFilter

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
UsernamePasswordRpcAuthenticationFilter()
           
 
Method Summary
 void afterPropertiesSet()
           
 Authentication createAuthenticationToken(HttpServletRequest servletRequest, RPCRequest rpcRequest)
           
 RpcAuthenticationValueResolver getPasswordResolver()
           
 RpcAuthenticationValueResolver getUsernameResolver()
           
 void setPasswordResolver(RpcAuthenticationValueResolver passwordResolver)
           
 void setUsernameResolver(RpcAuthenticationValueResolver usernameResolver)
           
protected  void updateDetails(HttpServletRequest request, UsernamePasswordAuthenticationToken authentication)
           
 
Methods inherited from class de.itsvs.cwtrpc.security.AbstractRpcAuthenticationProcessingFilter
applySessionAuthenticationStrategy, attemptAuthentication, getApplicationEventPublisher, getAuthenticationDetailsSource, getAuthenticationFailureHandler, getAuthenticationManager, getAuthenticationSuccessHandler, getRememberMeServices, getRpcHttpSessionStrategy, getSessionAuthenticationStrategy, process, setApplicationEventPublisher, setAuthenticationDetailsSource, setAuthenticationFailureHandler, setAuthenticationManager, setAuthenticationSuccessHandler, setRememberMeServices, setRpcHttpSessionStrategy, setSessionAuthenticationStrategy, successfulAuthentication, successfulAuthenticationEnd, unsuccessfulAuthentication
 
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

UsernamePasswordRpcAuthenticationFilter

public UsernamePasswordRpcAuthenticationFilter()
Method Detail

getUsernameResolver

public RpcAuthenticationValueResolver getUsernameResolver()

setUsernameResolver

public void setUsernameResolver(RpcAuthenticationValueResolver usernameResolver)

getPasswordResolver

public RpcAuthenticationValueResolver getPasswordResolver()

setPasswordResolver

public void setPasswordResolver(RpcAuthenticationValueResolver passwordResolver)

afterPropertiesSet

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

createAuthenticationToken

public Authentication createAuthenticationToken(HttpServletRequest servletRequest,
                                                RPCRequest rpcRequest)
                                         throws AuthenticationException,
                                                IOException,
                                                ServletException
Specified by:
createAuthenticationToken in class AbstractRpcAuthenticationProcessingFilter
Throws:
AuthenticationException
IOException
ServletException

updateDetails

protected void updateDetails(HttpServletRequest request,
                             UsernamePasswordAuthenticationToken authentication)

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.