private SecurityManager createSecurityManager() {

        // create security manager
        DefaultWebSecurityManager securityManager = /*new DefaultWebSecurityManager();/*/new JawnSecurityManager();
        
        // add rememberme manager
        securityManager.setSessionManager(new JawnSecuritySessionManager());//TODO
        securityManager.setRememberMeManager(new JawnRememberMeManager());//TODO
        securityManager.setSubjectFactory(new JWebSubjectFactory());//TODO

        Collection<Realm> realms = readRealms();

        // add realms to security manager
        if (!realms.isEmpty())
            applyRealmsToSecurityManager(realms, securityManager);

        return securityManager;
    }
private SecurityManager createSecurityManager ( ) { DefaultWebSecurityManager securityManager = new JawnSecurityManager ( ) ; securityManager . setSessionManager ( new JawnSecuritySessionManager ( ) ) ; securityManager . setRememberMeManager ( new JawnRememberMeManager ( ) ) ; securityManager . setSubjectFactory ( new JWebSubjectFactory ( ) ) ; Collection < Realm > realms = readRealms ( ) ; if ( ! realms . isEmpty ( ) ) applyRealmsToSecurityManager ( realms , securityManager ) ; return securityManager ; }
}