Package org.beangle.security.auth.ui

Examples of org.beangle.security.auth.ui.UserDetails


public class AuthorityListener extends AbstractAuthenticationListener {
  protected AuthorityManager authorityManager;

  public void afterAuthenticate(Authentication auth) {
    UserDetails details = (UserDetails) auth.getDetails();
    authorityManager.registerAuthorities(details.getUserid());
  }
View Full Code Here


      CategoryProfile profile = authenticationManager.getSessionController()
          .getProfileProvider().getCategoryProfile(
              ((UserDetails) auth.getDetails()).getCategory());
      session.setMaxInactiveInterval(profile.getInactiveInterval() * 60);
      ((ServletRequestAware) auth).setRequest(null);
      UserDetails details = (UserDetails) auth.getDetails();
      if (null == details) {
        return;
      }
      session.setAttribute(Authentication.USERID, details.getUserid());
      session.setAttribute(Authentication.LOGINNAME, auth.getPrincipal());
      session.setAttribute(Authentication.FULLNAME, details.getFullname());
      session.setAttribute(Authentication.USER_CATEGORYID, details.getCategory().getId());
      logger.debug(
          "added session attributes USERID,LOGINNAME,USERNAME,USER_CATEGORYID for {}",
          auth.getPrincipal());
    }
  }
View Full Code Here

TOP

Related Classes of org.beangle.security.auth.ui.UserDetails

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.