@Configuration
@Conditional(value=org.springframework.boot.autoconfigure.security.oauth2.resource.ResourceServerTokenServicesConfiguration.JwtTokenCondition.class)
protected static class ResourceServerTokenServicesConfiguration.JwtTokenServicesConfiguration
extends java.lang.Object
implements org.springframework.context.ApplicationContextAware
| Constructor and Description |
|---|
JwtTokenServicesConfiguration(ResourceServerProperties resource,
org.springframework.beans.factory.ObjectProvider<java.util.List<JwtAccessTokenConverterConfigurer>> configurers,
org.springframework.beans.factory.ObjectProvider<java.util.List<JwtAccessTokenConverterRestTemplateCustomizer>> customizers) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.security.oauth2.provider.token.store.JwtAccessTokenConverter |
jwtTokenEnhancer() |
org.springframework.security.oauth2.provider.token.DefaultTokenServices |
jwtTokenServices(org.springframework.security.oauth2.provider.token.TokenStore jwtTokenStore) |
org.springframework.security.oauth2.provider.token.TokenStore |
jwtTokenStore() |
void |
setApplicationContext(org.springframework.context.ApplicationContext context) |
public JwtTokenServicesConfiguration(ResourceServerProperties resource, org.springframework.beans.factory.ObjectProvider<java.util.List<JwtAccessTokenConverterConfigurer>> configurers, org.springframework.beans.factory.ObjectProvider<java.util.List<JwtAccessTokenConverterRestTemplateCustomizer>> customizers)
public void setApplicationContext(org.springframework.context.ApplicationContext context)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansException@Bean @ConditionalOnMissingBean(value=org.springframework.security.oauth2.provider.token.ResourceServerTokenServices.class) public org.springframework.security.oauth2.provider.token.DefaultTokenServices jwtTokenServices(org.springframework.security.oauth2.provider.token.TokenStore jwtTokenStore)
@Bean @ConditionalOnMissingBean(value=org.springframework.security.oauth2.provider.token.TokenStore.class) public org.springframework.security.oauth2.provider.token.TokenStore jwtTokenStore()
@Bean public org.springframework.security.oauth2.provider.token.store.JwtAccessTokenConverter jwtTokenEnhancer()