@Configuration
@EnableAuthorizationServer
public class OAuth2AuthorizationConfig
extends org.springframework.security.oauth2.config.annotation.web.configuration.AuthorizationServerConfigurerAdapter
| 构造器和说明 |
|---|
OAuth2AuthorizationConfig() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
configure(org.springframework.security.oauth2.config.annotation.web.configurers.AuthorizationServerEndpointsConfigurer endpoints) |
void |
configure(org.springframework.security.oauth2.config.annotation.web.configurers.AuthorizationServerSecurityConfigurer oauthServer) |
void |
configure(org.springframework.security.oauth2.config.annotation.configurers.ClientDetailsServiceConfigurer clients) |
org.springframework.security.oauth2.provider.token.store.JwtAccessTokenConverter |
jwtAccessTokenConverter() |
org.springframework.security.oauth2.provider.token.TokenStore |
tokenStore() |
@Bean public org.springframework.security.oauth2.provider.token.TokenStore tokenStore()
@Bean public org.springframework.security.oauth2.provider.token.store.JwtAccessTokenConverter jwtAccessTokenConverter()
public void configure(org.springframework.security.oauth2.config.annotation.configurers.ClientDetailsServiceConfigurer clients)
throws java.lang.Exception
configure 在接口中 org.springframework.security.oauth2.config.annotation.web.configuration.AuthorizationServerConfigurerconfigure 在类中 org.springframework.security.oauth2.config.annotation.web.configuration.AuthorizationServerConfigurerAdapterjava.lang.Exceptionpublic void configure(org.springframework.security.oauth2.config.annotation.web.configurers.AuthorizationServerEndpointsConfigurer endpoints)
throws java.lang.Exception
configure 在接口中 org.springframework.security.oauth2.config.annotation.web.configuration.AuthorizationServerConfigurerconfigure 在类中 org.springframework.security.oauth2.config.annotation.web.configuration.AuthorizationServerConfigurerAdapterjava.lang.Exceptionpublic void configure(org.springframework.security.oauth2.config.annotation.web.configurers.AuthorizationServerSecurityConfigurer oauthServer)
throws java.lang.Exception
configure 在接口中 org.springframework.security.oauth2.config.annotation.web.configuration.AuthorizationServerConfigurerconfigure 在类中 org.springframework.security.oauth2.config.annotation.web.configuration.AuthorizationServerConfigurerAdapterjava.lang.Exception