Example usage for org.apache.shiro.subject SubjectContext isSessionCreationEnabled

List of usage examples for org.apache.shiro.subject SubjectContext isSessionCreationEnabled

Introduction

In this page you can find the example usage for org.apache.shiro.subject SubjectContext isSessionCreationEnabled.

Prototype

boolean isSessionCreationEnabled();

Source Link

Document

Returns true if the constructed Subject should be allowed to create a session, false otherwise.

Usage

From source file:com.caricah.iotracah.bootstrap.security.IOTSubjectFactory.java

License:Apache License

public Subject createSubject(SubjectContext context) {
    org.apache.shiro.mgt.SecurityManager securityManager = context.resolveSecurityManager();
    Session session = context.resolveSession();
    boolean sessionCreationEnabled = context.isSessionCreationEnabled();
    PrincipalCollection principals = context.resolvePrincipals();
    boolean authenticated = context.resolveAuthenticated();
    String host = context.resolveHost();

    return new IOTSubject(principals, authenticated, host, session, sessionCreationEnabled, securityManager);
}