Package org.beangle.security.core.session

Examples of org.beangle.security.core.session.SessionRegistry


  @Test(enabled = false)
  public void testCalculateOnline() {
    int sessionNum = 100;
    int profileNum = 10;
    SessionRegistry registry = new MemSessionRegistry();
    for (int i = 0; i < sessionNum; i++) {
      String random = RandomStringUtils.randomAlphanumeric(21);
      Authentication authentication = new UsernamePasswordAuthentication(new MockPrincipal(
          random, String.valueOf(RandomUtils.nextInt(profileNum))), random);
      registry.register(random, authentication);
    }

//    ConcurrentSessionStrategy controller = new ConcurrentSessionStrategy();
//    controller.setProfileProvider(profileProvider);
//    controller.setSessionRegistry(registry);
View Full Code Here

TOP

Related Classes of org.beangle.security.core.session.SessionRegistry

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.