protected void afterCacheManagerSet() {
        //trigger obtaining the authentication cache if possible
        getAvailableAuthenticationCache();
    }
This implementation attempts to acquire an authentication cache if one is not already configured.

@since 1.2
core/src/main/java/org/apache/shiro/realm/AuthenticatingRealm.java