org.springframework.security.web.authentication
Class WebAuthenticationDetailsSource

java.lang.Object
  extended by org.springframework.security.web.authentication.WebAuthenticationDetailsSource
All Implemented Interfaces:
AuthenticationDetailsSource

public class WebAuthenticationDetailsSource
extends Object
implements AuthenticationDetailsSource

Implementation of AuthenticationDetailsSource which builds the details object from an HttpServletRequest object.

By default will create an instance of WebAuthenticationDetails. Any object that accepts a HttpServletRequest as its sole constructor can be used instead of this default.


Constructor Summary
WebAuthenticationDetailsSource()
           
 
Method Summary
 Object buildDetails(Object context)
          Called by a class when it wishes a new authentication details instance to be created.
 void setClazz(Class<?> clazz)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebAuthenticationDetailsSource

public WebAuthenticationDetailsSource()
Method Detail

buildDetails

public Object buildDetails(Object context)
Description copied from interface: AuthenticationDetailsSource
Called by a class when it wishes a new authentication details instance to be created.

Specified by:
buildDetails in interface AuthenticationDetailsSource
Parameters:
context - the HttpServletRequest object.
Returns:
a fully-configured authentication details instance

setClazz

public void setClazz(Class<?> clazz)