org.springframework.security.web.authentication
Class WebAuthenticationDetailsSource
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WebAuthenticationDetailsSource
public WebAuthenticationDetailsSource()
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)