use of org.springframework.security.oauth2.provider.token.store.JwtTokenStore in project Spring-5.0-By-Example by PacktPublishing.
the class OAuthTokenConfiguration method tokenStore.
@Bean
public JwtTokenStore tokenStore() throws Exception {
JwtAccessTokenConverter enhancer = new JwtAccessTokenConverter();
enhancer.setSigningKey(privateKey);
enhancer.setVerifierKey(publicKey);
enhancer.afterPropertiesSet();
return new JwtTokenStore(enhancer);
}
Aggregations