Example usage for org.springframework.security.core.userdetails UserDetailsService interface-usage

List of usage examples for org.springframework.security.core.userdetails UserDetailsService interface-usage

Introduction

In this page you can find the example usage for org.springframework.security.core.userdetails UserDetailsService interface-usage.

Usage

From source file net.maritimecloud.identityregistry.security.X509UserDetailsService.java

public class X509UserDetailsService implements UserDetailsService {

    @Override
    public UserDetails loadUserByUsername(String certDN) throws UsernameNotFoundException {
        SimpleGrantedAuthority role = new SimpleGrantedAuthority("ROLE_USER");
        Collection<GrantedAuthority> roles = new ArrayList<GrantedAuthority>();

From source file org.zlogic.vogon.web.security.UserService.java

/**
 * The user details service for Spring Security
 *
 * @author Dmitry Zolotukhin [zlogic@gmail.com]
 */
@Service

From source file com.organization.projectname.service.UserService.java

/**
 *
 * @author Muhamad Ridwan <me@muhamadridwan.id>
 */
public interface UserService extends UserDetailsService {
    void addAuthority(Authority authority) throws Exception;

From source file es.galvarez.rest.repositories.UserRepository.java

/**
 * @author Gonzalo Alvarez
 *
 */
@RestResource(path = "users", rel = "users")
public interface UserRepository extends CrudRepository<User, Long>, UserDetailsService {

From source file cz.muni.fi.pa165.legomanager.services.impl.UserDetailsServiceImpl.java

/**
 *
 * @author Petr
 */
@Service("userAuthenticationProvider")
@Transactional

From source file cz.lbenda.coursing.server.user.UserServiceImpl.java

/**
 * @author Lukas Benda <lbenda at lbenda.cz>
 */
// @Service("UserService")
public final class UserServiceImpl extends AbstractDTOServiceImpl<User> implements UserService, UserDetailsService {

From source file edu.vt.middleware.cas.userdetails.LdapUserDetailsService.java

/**
 * Provides a simple {@link UserDetailsService} implementation that obtains user details from an LDAP search.
 * Two searches are performed by this component for every user details lookup:
 * <ol>
 *     <li>Search for an entry to resolve the username. In most cases the search should return exactly one result,
 *     but the {@link #setAllowMultipleResults(boolean)} property may be toggled to change that behavior.</li>

From source file de.thm.arsnova.security.DbUserDetailsService.java

@Service
public class DbUserDetailsService implements UserDetailsService {
    @Autowired
    private IDatabaseDao dao;

    public static final Logger LOGGER = LoggerFactory.getLogger(DbUserDetailsService.class);

From source file ru.mystamps.web.support.spring.security.CustomUserDetailsService.java

/**
 * Implementation of Spring's {@link UserDetailsService} which uses our DAO to load user.
 */
@RequiredArgsConstructor
public class CustomUserDetailsService implements UserDetailsService {

From source file eu.enhan.timelord.domain.security.TimelordUserDetailsService.java

/**
 * @author Emmanuel Nhan
 *
 */
@Service
public class TimelordUserDetailsService implements UserDetailsService {