List of usage examples for org.springframework.security.oauth2.provider.token DefaultTokenServices setReuseRefreshToken
public void setReuseRefreshToken(boolean reuseRefreshToken)
From source file:org.osiam.configuration.OAuth2AuthorizationServerConfig.java
@Bean public DefaultTokenServices tokenServices() throws Exception { DefaultTokenServices tokenServices = new DefaultTokenServices(); tokenServices.setTokenStore(tokenStore()); tokenServices.setSupportRefreshToken(true); tokenServices.setReuseRefreshToken(true); tokenServices.setClientDetailsService(osiamClientDetailsService); tokenServices.setTokenEnhancer(osiamTokenEnhancer()); tokenServices.afterPropertiesSet();/*from w w w.ja v a2s . c om*/ return tokenServices; }