net.sourceforge.pebble.security
Class DefaultUserDetailsService

java.lang.Object
  extended by net.sourceforge.pebble.security.DefaultUserDetailsService

public class DefaultUserDetailsService
extends java.lang.Object

Implementation of the UserDetailsService that gets authentication credentials from a SecurityRealm implementation.

Author:
Simon Brown

Constructor Summary
DefaultUserDetailsService()
           
 
Method Summary
 SecurityRealm getSecurityRealm()
           
 UserDetails loadUserByUsername(java.lang.String username)
          Looks up and returns user details for the given username.
 void setSecurityRealm(SecurityRealm securityRealm)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultUserDetailsService

public DefaultUserDetailsService()
Method Detail

loadUserByUsername

public UserDetails loadUserByUsername(java.lang.String username)
                               throws UsernameNotFoundException
Looks up and returns user details for the given username.

Parameters:
username - the username to find details for
Returns:
a PebbleUserDetails instance
Throws:
org.acegisecurity.userdetails.UsernameNotFoundException
UsernameNotFoundException

getSecurityRealm

public SecurityRealm getSecurityRealm()

setSecurityRealm

public void setSecurityRealm(SecurityRealm securityRealm)


Copyright © 2003-2006, Simon Brown. All Rights Reserved.