Example usage for org.springframework.security.core.userdetails.cache EhCacheBasedUserCache setCache

List of usage examples for org.springframework.security.core.userdetails.cache EhCacheBasedUserCache setCache

Introduction

In this page you can find the example usage for org.springframework.security.core.userdetails.cache EhCacheBasedUserCache setCache.

Prototype

public void setCache(Ehcache cache) 

Source Link

Usage

From source file:cz.lbenda.coursing.client.ClientAppConfig.java

public @Bean UserCache userCache() {
    final EhCacheBasedUserCache result = new EhCacheBasedUserCache();
    result.setCache(userCacheBackend().getObject());
    return result;
}