INNER CODE UNIT · Java

set

bujiio/buji-pac4j · src/main/java/io/buji/pac4j/context/ShiroSessionStore.java:95

    public void set(final WebContext context, final String key, final Object value) {
        final Session session = getSession(true);
        if (session != null) {
            try {
                if (value instanceof Exception) {
                    LOGGER.debug("Set key: {} for value: {}", key, value.toString());
                } else {
                    LOGGER.debug("Set key: {} for value: {}", key, value);
                }
                session.setAttribute(key, value);
            } catch (final UnavailableSecurityManagerException e) {
                LOGGER.warn("Should happen just once at startup in some specific case of Shiro Spring configuration", e);
            }
        }
    }

    @Override
    public boolean destroySession(final WebContext context) {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…