public class AuthResourceSecurityConfiguration
extends org.springframework.security.oauth2.config.annotation.web.configuration.ResourceServerConfigurerAdapter
| 限定符和类型 | 字段和说明 |
|---|---|
org.springframework.boot.autoconfigure.security.oauth2.resource.ResourceServerProperties |
resourceServerProperties |
| 构造器和说明 |
|---|
AuthResourceSecurityConfiguration(org.springframework.boot.autoconfigure.security.oauth2.resource.ResourceServerProperties resourceServerProperties) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http) |
org.springframework.security.oauth2.provider.token.ResourceServerTokenServices |
dynamicTokenServices(org.springframework.security.oauth2.provider.token.DefaultTokenServices jwtTokenService) |
org.springframework.security.oauth2.provider.token.DefaultTokenServices |
jwtTokenServices(org.springframework.security.oauth2.provider.token.TokenStore jwtTokenStore) |
org.springframework.security.oauth2.provider.token.RemoteTokenServices |
remoteTokenServices() |
org.springframework.security.core.userdetails.UserDetailsService |
userDetailsServiceOne() |
org.springframework.security.core.userdetails.UserDetailsService |
userDetailsServiceTwo() |
public final org.springframework.boot.autoconfigure.security.oauth2.resource.ResourceServerProperties resourceServerProperties
public AuthResourceSecurityConfiguration(org.springframework.boot.autoconfigure.security.oauth2.resource.ResourceServerProperties resourceServerProperties)
public void configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http)
throws Exception
configure 在接口中 org.springframework.security.oauth2.config.annotation.web.configuration.ResourceServerConfigurerconfigure 在类中 org.springframework.security.oauth2.config.annotation.web.configuration.ResourceServerConfigurerAdapterException@Bean public org.springframework.security.core.userdetails.UserDetailsService userDetailsServiceOne()
@Bean public org.springframework.security.core.userdetails.UserDetailsService userDetailsServiceTwo()
@Bean public org.springframework.security.oauth2.provider.token.RemoteTokenServices remoteTokenServices()
@Bean public org.springframework.security.oauth2.provider.token.DefaultTokenServices jwtTokenServices(org.springframework.security.oauth2.provider.token.TokenStore jwtTokenStore)
@Bean @Primary public org.springframework.security.oauth2.provider.token.ResourceServerTokenServices dynamicTokenServices(org.springframework.security.oauth2.provider.token.DefaultTokenServices jwtTokenService)
Copyright © 2018. All rights reserved.