org.acegisecurity.ui.x509
Class X509ProcessingFilterEntryPoint

java.lang.Object
  extended by org.acegisecurity.ui.x509.X509ProcessingFilterEntryPoint
All Implemented Interfaces:
AuthenticationEntryPoint, Ordered

public class X509ProcessingFilterEntryPoint
extends Object
implements AuthenticationEntryPoint, Ordered

In the X.509 authentication case (unlike CAS, for example) the certificate will already have been extracted from the request and a secure context established by the time the security-enforcement filter is invoked.

Therefore this class isn't actually responsible for the commencement of authentication, as it is in the case of other providers. It will be called if the certificate was rejected by Acegi's X509AuthenticationProvider, resulting in a null authentication.

The commence method will always return an HttpServletResponse.SC_FORBIDDEN (403 error).

Version:
$Id: X509ProcessingFilterEntryPoint.java 1496 2006-05-23 13:38:33Z benalex $
Author:
Luke Taylor
See Also:
ExceptionTranslationFilter

Field Summary
 
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
 
Constructor Summary
X509ProcessingFilterEntryPoint()
           
 
Method Summary
 void commence(ServletRequest request, ServletResponse response, AuthenticationException authException)
          Returns a 403 error code to the client.
 int getOrder()
           
 void setOrder(int order)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

X509ProcessingFilterEntryPoint

public X509ProcessingFilterEntryPoint()
Method Detail

getOrder

public int getOrder()
Specified by:
getOrder in interface Ordered

setOrder

public void setOrder(int order)

commence

public void commence(ServletRequest request,
                     ServletResponse response,
                     AuthenticationException authException)
              throws IOException,
                     ServletException
Returns a 403 error code to the client.

Specified by:
commence in interface AuthenticationEntryPoint
Parameters:
request - DOCUMENT ME!
response - DOCUMENT ME!
authException - DOCUMENT ME!
Throws:
IOException - DOCUMENT ME!
ServletException - DOCUMENT ME!


Copyright © 2004-2007 Interface21, Inc. All Rights Reserved.