Java Code Examples for org.apache.shiro.mgt.DefaultSecurityManager#setRememberMeManager()
The following examples show how to use
org.apache.shiro.mgt.DefaultSecurityManager#setRememberMeManager() .
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: ShiroConfig.java From SpringBoot-Base-System with GNU Lesser General Public License v3.0 | 5 votes |
/** * 授权管理器 * * @time 2018年4月10日 下午5:10:02. * * @version V1.0 * @return DefaultSecurityManager */ @Bean(name = "securityManager") @ConditionalOnMissingBean public DefaultSecurityManager securityManager() { DefaultSecurityManager sm = new DefaultWebSecurityManager(); sm.setCacheManager(cacheManager()); sm.setRememberMeManager(rememberMeManager());// 注入记住我 return sm; }
Example 2
Source File: ShiroConfiguration.java From spring-boot-shiro with Apache License 2.0 | 5 votes |
@Bean(name = "securityManager") @DependsOn(value = {"cacheManager", "rememberMeManager", "mainRealm"}) public DefaultSecurityManager securityManager(Realm realm, RememberMeManager rememberMeManager, CacheManager cacheManager, SessionManager sessionManager) { DefaultSecurityManager sm = new DefaultWebSecurityManager(); sm.setRealm(realm); sm.setCacheManager(cacheManager); sm.setSessionManager(sessionManager); sm.setRememberMeManager(rememberMeManager); return sm; }
Example 3
Source File: ShiroConfiguration.java From utils with Apache License 2.0 | 5 votes |
@Bean(name = "securityManager") @DependsOn(value = {"cacheManager", "rememberMeManager", "mainRealm"}) public DefaultSecurityManager securityManager(Realm realm, RememberMeManager rememberMeManager, CacheManager cacheManager, SessionManager sessionManager) { DefaultSecurityManager sm = new DefaultWebSecurityManager(); sm.setRealm(realm); sm.setCacheManager(cacheManager); sm.setSessionManager(sessionManager); sm.setRememberMeManager(rememberMeManager); return sm; }