// TODO: add own key
 @Bean
 public JwtAccessTokenConverter jwtAccessTokenConverter() {
   JwtAccessTokenConverter converter = new JwtAccessTokenConverter();
   KeyPair keyPair =
       new KeyStoreKeyFactory(new ClassPathResource("keystore.jks"), "foobar".toCharArray())
           .getKeyPair("test");
   converter.setKeyPair(keyPair);
   return converter;
 }
 @Bean
 public JwtAccessTokenConverter jwtTokenEnhancer() {
   // Implementation based on Java TrustStore. If you need something different you can
   // override and implement your own JwtAccessTokenConverter.
   // Authorization and ResourceServer implementation must be the same
   JwtAccessTokenConverter converter = new JwtAccessTokenConverter();
   KeyPair keyPair =
       new KeyStoreKeyFactory(
               new ClassPathResource(oauthJwtKeystore), oauthJwtKeystorePassword.toCharArray())
           .getKeyPair(oauthJwtKeystoreKey);
   converter.setKeyPair(keyPair);
   return converter;
 }