本文整理汇总了Java中org.springframework.security.oauth2.provider.token.store.redis.RedisTokenStore类的典型用法代码示例。如果您正苦于以下问题:Java RedisTokenStore类的具体用法?Java RedisTokenStore怎么用?Java RedisTokenStore使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
RedisTokenStore类属于org.springframework.security.oauth2.provider.token.store.redis包,在下文中一共展示了RedisTokenStore类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: configure
import org.springframework.security.oauth2.provider.token.store.redis.RedisTokenStore; //导入依赖的package包/类
@Override
public void configure(AuthorizationServerEndpointsConfigurer endpoints) throws Exception {
TokenStore tokenStore = new RedisTokenStore(redisConnectionFactory);
// @formatter:off
endpoints.tokenStore(tokenStore)
.authenticationManager(authenticationManager)
.userDetailsService(userDetailsService);
// @formatter:on
}
开发者ID:sniperqpc,项目名称:Spring-cloud-gather,代码行数:10,代码来源:AuthorizationServerConfiguration.java
示例2: tokenStore
import org.springframework.security.oauth2.provider.token.store.redis.RedisTokenStore; //导入依赖的package包/类
@Bean
public TokenStore tokenStore() {
return new RedisTokenStore(connectionFactory);
}
开发者ID:PacktPublishing,项目名称:OAuth-2.0-Cookbook,代码行数:5,代码来源:OAuth2ResourceServer.java
示例3: tokenStore
import org.springframework.security.oauth2.provider.token.store.redis.RedisTokenStore; //导入依赖的package包/类
@Bean
public TokenStore tokenStore() {
RedisTokenStore redis = new RedisTokenStore(connectionFactory);
return redis;
}
开发者ID:PacktPublishing,项目名称:OAuth-2.0-Cookbook,代码行数:6,代码来源:OAuth2AuthorizationServer.java
示例4: tokenStore
import org.springframework.security.oauth2.provider.token.store.redis.RedisTokenStore; //导入依赖的package包/类
@Bean
public TokenStore tokenStore() {
return new RedisTokenStore(jedisConnectionFactory);
}
开发者ID:RizkiMufrizal,项目名称:Spring-OAuth2-Custom,代码行数:5,代码来源:OAuth2Configuration.java
示例5: tokenStore
import org.springframework.security.oauth2.provider.token.store.redis.RedisTokenStore; //导入依赖的package包/类
@Bean
public TokenStore tokenStore() {
// return new InMemoryTokenStore();
return new RedisTokenStore(redisConnectionFactory);
}
开发者ID:SeldonIO,项目名称:seldon-core,代码行数:6,代码来源:AuthorizationServerConfiguration.java
示例6: tokenStore
import org.springframework.security.oauth2.provider.token.store.redis.RedisTokenStore; //导入依赖的package包/类
@Bean
public TokenStore tokenStore() {
return new RedisTokenStore(redisConnectionFactory);
}
开发者ID:junneyang,项目名称:xxproject,代码行数:5,代码来源:OAuth2AuthorizationServerConfig.java
示例7: tokenStore
import org.springframework.security.oauth2.provider.token.store.redis.RedisTokenStore; //导入依赖的package包/类
@Bean
public TokenStore tokenStore(final RedisConnectionFactory redisConnectionFactory) {
log.debug("Enabling RedisTokenStore");
return new RedisTokenStore(redisConnectionFactory);
}
开发者ID:EuregJUG-Maas-Rhine,项目名称:site,代码行数:6,代码来源:SecurityConfig.java
示例8: redisTokenStore
import org.springframework.security.oauth2.provider.token.store.redis.RedisTokenStore; //导入依赖的package包/类
@Bean
public RedisTokenStore redisTokenStore(@Autowired RedisConnectionFactory redisConnectionFactory){
RedisTokenStore store = new RedisTokenStore(redisConnectionFactory);
return store;
}
开发者ID:wayshall,项目名称:onetwo,代码行数:6,代码来源:Oauth2TokenStoreConfiguration.java
注:本文中的org.springframework.security.oauth2.provider.token.store.redis.RedisTokenStore类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论