Examples of LdapUserDetailsImpl


Examples of org.springframework.security.ldap.userdetails.LdapUserDetailsImpl

    @Autowired
    protected MessageUtils messageUtils;

    protected UserDetails getUser() {
  BlogUser user = BlogUser.getInstance();
  LdapUserDetailsImpl userDetails = (LdapUserDetailsImpl) SecurityContextHolder.getContext().getAuthentication()
    .getPrincipal();
  BeanUtils.copyProperties(userDetails, user);

  return userDetailsService.getUserDetailsByUsername(user.getUsername());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.