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

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

Introduction

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

Prototype

boolean resolveAuthenticated();

Source Link

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);
}