org.apache.shiro.session.SessionListener Java Examples
The following examples show how to use
org.apache.shiro.session.SessionListener.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ClientBridgeSecurityModule.java From arcusplatform with Apache License 2.0 | 5 votes |
@Override protected void bindSessionManager(AnnotatedBindingBuilder<SessionManager> bind) { shiroSessionListeners = Multibinder.newSetBinder(binder(), SessionListener.class, Names.named(GuicySessionManager.PROP_SESSION_LISTENERS)); shiroSessionListeners.addBinding().to(ShiroSessionRegistryExpirer.class).asEagerSingleton(); bind.to(GuicySessionManager.class).asEagerSingleton(); bind(GuicySessionManager.class); bindRealm().to(AppHandoffRealm.class); }
Example #2
Source File: GuicySessionManager.java From arcusplatform with Apache License 2.0 | 5 votes |
@Inject public GuicySessionManager(SessionDAO sessionDAO, CacheManager cacheManager, @Named(PROP_SESSION_LISTENERS) Set<SessionListener> listeners, SessionConfig config) { super(); this.globalSessionTimeoutInSecs = config.getDefaultSessionTimeoutInSecs(); setSessionDAO(sessionDAO); setCacheManager(cacheManager); setSessionListeners(listeners); }
Example #3
Source File: ShiroCustomizer.java From jsets-shiro-spring-boot-starter with Apache License 2.0 | 4 votes |
public ShiroCustomizer addSessionListeners(SessionListener... sessionListeners) { for(SessionListener sl:sessionListeners) this.sessionListeners.add(sl); return self(); }
Example #4
Source File: ShiroCustomizer.java From jsets-shiro-spring-boot-starter with Apache License 2.0 | 4 votes |
public List<SessionListener> getSessionListeners() { return sessionListeners; }
Example #5
Source File: ShiroCustomizer.java From jsets-shiro-spring-boot-starter with Apache License 2.0 | 2 votes |
/** * 添加session监听器 * <br> * * @param SessionListener see org.apache.shiro.session.SessionListener */ public ShiroCustomizer addSessionListener(SessionListener sessionListener) { this.sessionListeners.add(sessionListener); return self(); }