public class

UserDetailsByNameServiceWrapper

extends Object
implements InitializingBean AuthenticationUserDetailsService<T extends Authentication>
java.lang.Object
   ↳ org.springframework.security.core.userdetails.UserDetailsByNameServiceWrapper<T extends org.springframework.security.core.Authentication>

Class Overview

This implementation for AuthenticationUserDetailsService wraps a regular Spring Security UserDetailsService implementation, to retrieve a UserDetails object based on the user name contained in an Authentication object.

Summary

Public Constructors
UserDetailsByNameServiceWrapper()
Constructs an empty wrapper for compatibility with Spring Security 2.0.x's method of using a setter.
UserDetailsByNameServiceWrapper(UserDetailsService userDetailsService)
Constructs a new wrapper using the supplied UserDetailsService as the service to delegate to.
Public Methods
void afterPropertiesSet()
Check whether all required properties have been set.
UserDetails loadUserDetails(T authentication)
Get the UserDetails object from the wrapped UserDetailsService implementation
void setUserDetailsService(UserDetailsService aUserDetailsService)
Set the wrapped UserDetailsService implementation
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.springframework.beans.factory.InitializingBean
From interface org.springframework.security.core.userdetails.AuthenticationUserDetailsService

Public Constructors

public UserDetailsByNameServiceWrapper ()

Constructs an empty wrapper for compatibility with Spring Security 2.0.x's method of using a setter.

public UserDetailsByNameServiceWrapper (UserDetailsService userDetailsService)

Constructs a new wrapper using the supplied UserDetailsService as the service to delegate to.

Parameters
userDetailsService the UserDetailsService to delegate to.

Public Methods

public void afterPropertiesSet ()

Check whether all required properties have been set.

Throws
Exception

public UserDetails loadUserDetails (T authentication)

Get the UserDetails object from the wrapped UserDetailsService implementation

public void setUserDetailsService (UserDetailsService aUserDetailsService)

Set the wrapped UserDetailsService implementation

Parameters
aUserDetailsService The wrapped UserDetailsService to set