public SubjectFactory getSubjectFactory() {
        return subjectFactory;
    }
Returns the {@code SubjectFactory} responsible for creating {@link Subject} instances exposed to the application.

@return the {@code SubjectFactory} responsible for creating {@link Subject} instances exposed to the application.
core/src/main/java/org/apache/shiro/mgt/DefaultSecurityManager.java