@EnableAuthorizationServer
@EnableConfigurationProperties(value=org.springframework.boot.autoconfigure.security.oauth2.authserver.AuthorizationServerProperties.class)
public class AuthorizationSecurityConfiguration
extends org.springframework.security.oauth2.config.annotation.web.configuration.AuthorizationServerConfigurerAdapter
| 构造器和说明 |
|---|
AuthorizationSecurityConfiguration(org.springframework.security.config.annotation.authentication.configuration.AuthenticationConfiguration authenticationConfiguration,
DataSource dataSource,
org.springframework.security.crypto.password.PasswordEncoder passwordEncoder,
org.springframework.security.oauth2.provider.ClientDetailsService clientDetailsService,
org.springframework.boot.autoconfigure.security.oauth2.authserver.AuthorizationServerProperties authorizationServerProperties) |
| 限定符和类型 | 方法和说明 |
|---|---|
org.springframework.security.oauth2.provider.code.AuthorizationCodeServices |
authorizationCodeServices() |
void |
configure(org.springframework.security.oauth2.config.annotation.web.configurers.AuthorizationServerEndpointsConfigurer endpoints) |
void |
configure(org.springframework.security.oauth2.config.annotation.web.configurers.AuthorizationServerSecurityConfigurer security) |
void |
configure(org.springframework.security.oauth2.config.annotation.configurers.ClientDetailsServiceConfigurer clients) |
org.springframework.security.oauth2.provider.TokenGranter |
dynamicTokenGranter() |
org.springframework.security.oauth2.provider.token.AuthorizationServerTokenServices |
jdbcTokenService() |
org.springframework.security.oauth2.provider.token.store.JdbcTokenStore |
jdbcTokenStore() |
org.springframework.security.oauth2.provider.token.store.JwtAccessTokenConverter |
jwtAccessTokenConverter() |
org.springframework.security.oauth2.provider.token.AuthorizationServerTokenServices |
jwtTokenService() |
org.springframework.security.oauth2.provider.token.store.JwtTokenStore |
jwtTokenStore() |
DynamicTokenEndpoint |
tokenEndpoint(org.springframework.context.ApplicationContext applicationContext) |
@Autowired
public AuthorizationSecurityConfiguration(org.springframework.security.config.annotation.authentication.configuration.AuthenticationConfiguration authenticationConfiguration,
DataSource dataSource,
org.springframework.security.crypto.password.PasswordEncoder passwordEncoder,
org.springframework.security.oauth2.provider.ClientDetailsService clientDetailsService,
org.springframework.boot.autoconfigure.security.oauth2.authserver.AuthorizationServerProperties authorizationServerProperties)
throws Exception
Exceptionpublic void configure(org.springframework.security.oauth2.config.annotation.configurers.ClientDetailsServiceConfigurer clients)
throws Exception
configure 在接口中 org.springframework.security.oauth2.config.annotation.web.configuration.AuthorizationServerConfigurerconfigure 在类中 org.springframework.security.oauth2.config.annotation.web.configuration.AuthorizationServerConfigurerAdapterExceptionpublic void configure(org.springframework.security.oauth2.config.annotation.web.configurers.AuthorizationServerEndpointsConfigurer endpoints)
configure 在接口中 org.springframework.security.oauth2.config.annotation.web.configuration.AuthorizationServerConfigurerconfigure 在类中 org.springframework.security.oauth2.config.annotation.web.configuration.AuthorizationServerConfigurerAdapterpublic void configure(org.springframework.security.oauth2.config.annotation.web.configurers.AuthorizationServerSecurityConfigurer security)
configure 在接口中 org.springframework.security.oauth2.config.annotation.web.configuration.AuthorizationServerConfigurerconfigure 在类中 org.springframework.security.oauth2.config.annotation.web.configuration.AuthorizationServerConfigurerAdapter@Bean public org.springframework.security.oauth2.provider.token.AuthorizationServerTokenServices jdbcTokenService()
@Bean public org.springframework.security.oauth2.provider.token.AuthorizationServerTokenServices jwtTokenService()
@Bean @Primary public org.springframework.security.oauth2.provider.token.store.JwtTokenStore jwtTokenStore()
@Bean public org.springframework.security.oauth2.provider.token.store.JwtAccessTokenConverter jwtAccessTokenConverter()
@Bean public org.springframework.security.oauth2.provider.token.store.JdbcTokenStore jdbcTokenStore()
@Bean @Primary public DynamicTokenEndpoint tokenEndpoint(org.springframework.context.ApplicationContext applicationContext)
@Bean public org.springframework.security.oauth2.provider.code.AuthorizationCodeServices authorizationCodeServices()
@Bean public org.springframework.security.oauth2.provider.TokenGranter dynamicTokenGranter()
Copyright © 2019. All rights reserved.