Java tutorial
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package mx.edu.um.dii.general.service; import mx.edu.um.dii.general.model.Usuario; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.security.core.userdetails.AuthenticationUserDetailsService; import org.springframework.security.core.userdetails.UserDetails; import org.springframework.security.core.userdetails.UserDetailsService; import org.springframework.security.core.userdetails.UsernameNotFoundException; import org.springframework.security.openid.OpenIDAuthenticationToken; /** * * @author edermtz */ public class UserDetailsServiceImpl implements UserDetailsService, AuthenticationUserDetailsService<OpenIDAuthenticationToken> { private static final Logger log = LoggerFactory.getLogger(UserDetailsServiceImpl.class); @Override public UserDetails loadUserByUsername(String string) throws UsernameNotFoundException { log.debug("loadUserByUsername: {}", string); Usuario usuario = null; return usuario; } @Override public UserDetails loadUserDetails(OpenIDAuthenticationToken t) throws UsernameNotFoundException { throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. } }