INNER CODE UNIT · Java

saveAll

bujiio/buji-pac4j · src/main/java/io/buji/pac4j/profile/ShiroProfileManager.java:50

    protected void saveAll(LinkedHashMap<String, UserProfile> profiles, final boolean saveInSession) {
        super.saveAll(profiles, saveInSession);

        try {
            ShiroHelper.populateSubject(profiles);
        } catch (final AuthenticationException e) {
            super.removeProfiles();
            throw e;
        }
    }

    @Override
    public void removeProfiles() {
        super.removeProfiles();

        SecurityUtils.getSubject().logout();
    }
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…