org.apache.shiro.session.mgt.eis.SessionIdGenerator Java Examples

The following examples show how to use org.apache.shiro.session.mgt.eis.SessionIdGenerator. 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: ShiroAutoConfiguration.java    From utils with Apache License 2.0 5 votes vote down vote up
@Bean
@ConditionalOnMissingBean
public SessionDAO sessionDAO(CacheManager cacheManager) {
    EnterpriseCacheSessionDAO dao = new EnterpriseCacheSessionDAO();
    dao.setActiveSessionsCacheName(shiroSessionProperties.getActiveSessionsCacheName());
    Class<? extends SessionIdGenerator> idGenerator = shiroSessionProperties.getIdGenerator();
    if (idGenerator != null) {
        SessionIdGenerator sessionIdGenerator = BeanUtils.instantiate(idGenerator);
        dao.setSessionIdGenerator(sessionIdGenerator);
    }
    dao.setCacheManager(cacheManager);

    return dao;
}
 
Example #2
Source File: ShiroSessionProperties.java    From spring-boot-shiro with Apache License 2.0 4 votes vote down vote up
public Class<? extends SessionIdGenerator> getIdGenerator() {
    return idGenerator;
}
 
Example #3
Source File: ShiroSessionProperties.java    From spring-boot-shiro with Apache License 2.0 4 votes vote down vote up
public void setIdGenerator(Class<? extends SessionIdGenerator> idGenerator) {
    this.idGenerator = idGenerator;
}
 
Example #4
Source File: ShiroSessionProperties.java    From utils with Apache License 2.0 4 votes vote down vote up
public Class<? extends SessionIdGenerator> getIdGenerator() {
    return idGenerator;
}
 
Example #5
Source File: ShiroSessionProperties.java    From utils with Apache License 2.0 4 votes vote down vote up
public void setIdGenerator(Class<? extends SessionIdGenerator> idGenerator) {
    this.idGenerator = idGenerator;
}