Package org.springside.examples.showcase.service.ShiroDbRealm

Examples of org.springside.examples.showcase.service.ShiroDbRealm.ShiroUser


  /**
   * 取出Shiro中的当前用户LoginName.
   */
  private String getCurrentUserName() {
    ShiroUser user = (ShiroUser) SecurityUtils.getSubject().getPrincipal();
    return user.loginName;
  }
View Full Code Here


  private BusinessLogger businessLogger;

  @Before
  public void setUp() {
    MockitoAnnotations.initMocks(this);
    ShiroTestUtils.mockSubject(new ShiroUser("foo", "Foo"));
  }
View Full Code Here

TOP

Related Classes of org.springside.examples.showcase.service.ShiroDbRealm.ShiroUser

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.