Package org.springframework.security.ldap.userdetails

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

Related Classes of org.springframework.security.ldap.userdetails.LdapUserDetailsImpl

Copyright © 2018 www.massapicom. 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.