com.force.sdk.springsecurity
Class AuthenticationProcessingFilterEntryPoint

java.lang.Object
  extended by com.force.sdk.springsecurity.AuthenticationProcessingFilterEntryPoint
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean, org.springframework.security.web.AuthenticationEntryPoint

public class AuthenticationProcessingFilterEntryPoint
extends Object
implements org.springframework.security.web.AuthenticationEntryPoint, org.springframework.beans.factory.InitializingBean

This is the entry point to the authentication handshake. It uses the ForceOAuthConnector to get the URL to the Force.com login page and then sends a redirect to that URL.

Author:
Fiaz Hossain

Constructor Summary
AuthenticationProcessingFilterEntryPoint()
           
 
Method Summary
 void afterPropertiesSet()
           
 void commence(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException authException)
           
 void setOauthConnector(ForceOAuthConnector oauthConnector)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthenticationProcessingFilterEntryPoint

public AuthenticationProcessingFilterEntryPoint()
Method Detail

setOauthConnector

public void setOauthConnector(ForceOAuthConnector oauthConnector)

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
Exception

commence

public void commence(javax.servlet.http.HttpServletRequest request,
                     javax.servlet.http.HttpServletResponse response,
                     org.springframework.security.core.AuthenticationException authException)
              throws IOException,
                     javax.servlet.ServletException
Specified by:
commence in interface org.springframework.security.web.AuthenticationEntryPoint
Throws:
IOException
javax.servlet.ServletException


Copyright © 2011. All Rights Reserved.