de.theit.jenkins.crowd
Class CrowdUserDetailsService

java.lang.Object
  extended by de.theit.jenkins.crowd.CrowdUserDetailsService
All Implemented Interfaces:
org.springframework.security.userdetails.UserDetailsService

public class CrowdUserDetailsService
extends Object
implements org.springframework.security.userdetails.UserDetailsService

This class provides the service to load a user object from the remote Crowd server.

Since:
07.09.2011
Version:
$Id$
Author:
Thorsten Heit (theit@gmx.de)

Constructor Summary
CrowdUserDetailsService(CrowdConfigurationService pConfiguration)
          Creates a new instance of this class.
 
Method Summary
 org.springframework.security.userdetails.UserDetails loadUserByUsername(String username)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CrowdUserDetailsService

public CrowdUserDetailsService(CrowdConfigurationService pConfiguration)
Creates a new instance of this class.

Parameters:
pConfiguration - The configuration to access the services on the remote Crowd server. May not be null.
Method Detail

loadUserByUsername

public org.springframework.security.userdetails.UserDetails loadUserByUsername(String username)
                                                                        throws org.springframework.security.userdetails.UsernameNotFoundException,
                                                                               org.springframework.dao.DataAccessException

Specified by:
loadUserByUsername in interface org.springframework.security.userdetails.UserDetailsService
Throws:
org.springframework.security.userdetails.UsernameNotFoundException
org.springframework.dao.DataAccessException
See Also:
UserDetailsService.loadUserByUsername(java.lang.String)


Copyright © 2004-2013 Hudson. All Rights Reserved.