Example usage for org.springframework.security.oauth2.provider.token DefaultTokenServices afterPropertiesSet

List of usage examples for org.springframework.security.oauth2.provider.token DefaultTokenServices afterPropertiesSet

Introduction

In this page you can find the example usage for org.springframework.security.oauth2.provider.token DefaultTokenServices afterPropertiesSet.

Prototype

public void afterPropertiesSet() throws Exception 

Source Link

Document

Initialize these token services.

Usage

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();
    return tokenServices;
}