Spring Security Framework

org.springframework.security.ui
Class WebAuthenticationDetailsSource

java.lang.Object
  extended by org.springframework.security.ui.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.

Version:
$Id$
Author:
Ben Alex

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)

Spring Security Framework

Copyright © 2004-2010 SpringSource, Inc. All Rights Reserved.