Class TokenConfiguration


  • @Configuration
    @EnableAuthorizationServer
    public class TokenConfiguration
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.springframework.security.oauth2.provider.token.store.JwtAccessTokenConverter accessTokenConverter()
      Set-up and return JwtAccessTokenConverter with symmetrical key.
      org.springframework.security.oauth2.provider.token.TokenEnhancer tokenEnhancer()  
      CustomTokenServices tokenServices()
      Set-up CustomTokenServices with tokenStore().
      org.springframework.security.oauth2.provider.token.TokenStore tokenStore()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TokenConfiguration

        public TokenConfiguration()
    • Method Detail

      • tokenStore

        @Bean
        public org.springframework.security.oauth2.provider.token.TokenStore tokenStore()
      • accessTokenConverter

        @Bean
        public org.springframework.security.oauth2.provider.token.store.JwtAccessTokenConverter accessTokenConverter()
        Set-up and return JwtAccessTokenConverter with symmetrical key.
        Returns:
        converter
      • tokenServices

        @Bean
        @Primary
        public CustomTokenServices tokenServices()
        Set-up CustomTokenServices with tokenStore().
        Returns:
        token services
      • tokenEnhancer

        @Bean
        public org.springframework.security.oauth2.provider.token.TokenEnhancer tokenEnhancer()