Package org.motechproject.mots.security
Class TokenConfiguration
- java.lang.Object
-
- org.motechproject.mots.security.TokenConfiguration
-
@Configuration @EnableAuthorizationServer public class TokenConfiguration extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description TokenConfiguration()
-
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()
-
-
-
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()
-
-