Example usage for org.apache.shiro.web.mgt WebSecurityManager isHttpSessionMode

List of usage examples for org.apache.shiro.web.mgt WebSecurityManager isHttpSessionMode

Introduction

In this page you can find the example usage for org.apache.shiro.web.mgt WebSecurityManager isHttpSessionMode.

Prototype

boolean isHttpSessionMode();

Source Link

Document

Security information needs to be retained from request to request, so Shiro makes use of a session for this.

Usage

From source file:com.flowlogix.security.cdi.ShiroSessionScopeContext.java

License:Apache License

private boolean isWebContainerSessions() {
    if (SecurityUtils.getSecurityManager() instanceof WebSecurityManager) {
        WebSecurityManager wsm = (WebSecurityManager) SecurityUtils.getSecurityManager();
        return wsm.isHttpSessionMode();
    }/*ww  w . ja  v a2  s . c  o  m*/
    return false;
}