public void setSubjectFactory(SubjectFactory subjectFactory) {
        this.subjectFactory = subjectFactory;
    }
Sets the {@code SubjectFactory} responsible for creating {@link Subject} instances exposed to the application.

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