org.pentaho.platform.web.http.security
Class RequestParameterFilterEntryPoint

java.lang.Object
  extended by org.pentaho.platform.web.http.security.RequestParameterFilterEntryPoint
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean, org.springframework.security.ui.AuthenticationEntryPoint

public class RequestParameterFilterEntryPoint
extends Object
implements org.springframework.security.ui.AuthenticationEntryPoint, org.springframework.beans.factory.InitializingBean

Used by the SecurityEnforcementFilter to commence authentication via the BasicProcessingFilter.

Once a user agent is authenticated using Request Parameter authentication, logout requires that the browser be closed or an unauthorized (401) header be sent. The simplest way of achieving the latter is to call the #commence(ServletRequest, ServletResponse) method below. This will indicate to the browser its credentials are no longer authorized, causing it to prompt the user to login again.


Constructor Summary
RequestParameterFilterEntryPoint()
           
 
Method Summary
 void afterPropertiesSet()
           
 void commence(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, org.springframework.security.AuthenticationException authException)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestParameterFilterEntryPoint

public RequestParameterFilterEntryPoint()
Method Detail

afterPropertiesSet

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

commence

public void commence(javax.servlet.ServletRequest request,
                     javax.servlet.ServletResponse response,
                     org.springframework.security.AuthenticationException authException)
              throws IOException,
                     javax.servlet.ServletException
Specified by:
commence in interface org.springframework.security.ui.AuthenticationEntryPoint
Throws:
IOException
javax.servlet.ServletException