Examples of SessionRegistry


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

    public void usingPrototypeDoesNotParsePointcutOnEachCall() {
        StopWatch sw = new StopWatch();
        sw.start();
        for (int i = 0; i < 1000; i++) {
            try {
                SessionRegistry reg = (SessionRegistry) ctx.getBean("sessionRegistryPrototype");
                reg.getAllPrincipals();
                fail("Expected AuthenticationCredentialsNotFoundException");
            } catch (AuthenticationCredentialsNotFoundException expected) {
            }
        }
        sw.stop();
View Full Code Here

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

    return SUCCESS;
  }
 
  public String getNumberOfUsers(){
    resultInfo = new OperResult();
    SessionRegistry sessionRegistry = (SessionRegistry)StorageService.ctx.getBean("sessionRegistry");
    resultInfo.setSucceed();
    resultInfo.setData(sessionRegistry.getAllPrincipals().size());
    return SUCCESS;
  }
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.