类 AuthorizationServerConfiguration

  • 所有已实现的接口:
    org.springframework.security.oauth2.config.annotation.web.configuration.AuthorizationServerConfigurer

    public class AuthorizationServerConfiguration
    extends org.springframework.security.oauth2.config.annotation.web.configuration.AuthorizationServerConfigurerAdapter
    认证授权服务
    作者:
    zhanglinfeng
    • 构造器概要

      构造器 
      构造器 说明
      AuthorizationServerConfiguration​(org.springframework.security.oauth2.provider.ClientDetailsService clientDetailsService, BiscuitSecurityProperties biscuitSecurityProperties, org.springframework.security.oauth2.provider.token.TokenStore tokenStore, org.springframework.security.authentication.AuthenticationManager authenticationManager, org.springframework.security.oauth2.provider.token.TokenEnhancerChain tokenEnhancerChain, org.springframework.security.core.userdetails.UserDetailsService userDetailsService, org.springframework.security.oauth2.provider.token.AuthorizationServerTokenServices defaultTokenServices, org.springframework.security.oauth2.provider.code.AuthorizationCodeServices authorizationCodeServices, List<EnhancerTokenGranter> enhancerTokenGranters)  
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      void configure​(org.springframework.security.oauth2.config.annotation.configurers.ClientDetailsServiceConfigurer clients)
      配置客户端
      void configure​(org.springframework.security.oauth2.config.annotation.web.configurers.AuthorizationServerEndpointsConfigurer endpoints)
      配置认证端点
      void configure​(org.springframework.security.oauth2.config.annotation.web.configurers.AuthorizationServerSecurityConfigurer security)
      配置认证服务
      List<org.springframework.security.oauth2.provider.TokenGranter> getTokenGranters​(org.springframework.security.oauth2.provider.ClientDetailsService clientDetails, org.springframework.security.oauth2.provider.token.AuthorizationServerTokenServices tokenServices, org.springframework.security.oauth2.provider.OAuth2RequestFactory requestFactory, org.springframework.security.oauth2.provider.TokenGranter tokenGranter)
      设置 TokenGranter
    • 构造器详细资料

      • AuthorizationServerConfiguration

        public AuthorizationServerConfiguration​(org.springframework.security.oauth2.provider.ClientDetailsService clientDetailsService,
                                                BiscuitSecurityProperties biscuitSecurityProperties,
                                                org.springframework.security.oauth2.provider.token.TokenStore tokenStore,
                                                org.springframework.security.authentication.AuthenticationManager authenticationManager,
                                                org.springframework.security.oauth2.provider.token.TokenEnhancerChain tokenEnhancerChain,
                                                org.springframework.security.core.userdetails.UserDetailsService userDetailsService,
                                                org.springframework.security.oauth2.provider.token.AuthorizationServerTokenServices defaultTokenServices,
                                                org.springframework.security.oauth2.provider.code.AuthorizationCodeServices authorizationCodeServices,
                                                List<EnhancerTokenGranter> enhancerTokenGranters)
    • 方法详细资料

      • configure

        public void configure​(org.springframework.security.oauth2.config.annotation.configurers.ClientDetailsServiceConfigurer clients)
                       throws Exception
        配置客户端
        指定者:
        configure 在接口中 org.springframework.security.oauth2.config.annotation.web.configuration.AuthorizationServerConfigurer
        覆盖:
        configure 在类中 org.springframework.security.oauth2.config.annotation.web.configuration.AuthorizationServerConfigurerAdapter
        参数:
        clients -
        抛出:
        Exception
      • configure

        public void configure​(org.springframework.security.oauth2.config.annotation.web.configurers.AuthorizationServerEndpointsConfigurer endpoints)
        配置认证端点
        指定者:
        configure 在接口中 org.springframework.security.oauth2.config.annotation.web.configuration.AuthorizationServerConfigurer
        覆盖:
        configure 在类中 org.springframework.security.oauth2.config.annotation.web.configuration.AuthorizationServerConfigurerAdapter
        参数:
        endpoints -
      • getTokenGranters

        public List<org.springframework.security.oauth2.provider.TokenGranter> getTokenGranters​(org.springframework.security.oauth2.provider.ClientDetailsService clientDetails,
                                                                                                org.springframework.security.oauth2.provider.token.AuthorizationServerTokenServices tokenServices,
                                                                                                org.springframework.security.oauth2.provider.OAuth2RequestFactory requestFactory,
                                                                                                org.springframework.security.oauth2.provider.TokenGranter tokenGranter)
        设置 TokenGranter
        参数:
        clientDetails -
        tokenServices -
        requestFactory -
        返回:
      • configure

        public void configure​(org.springframework.security.oauth2.config.annotation.web.configurers.AuthorizationServerSecurityConfigurer security)
                       throws Exception
        配置认证服务
        指定者:
        configure 在接口中 org.springframework.security.oauth2.config.annotation.web.configuration.AuthorizationServerConfigurer
        覆盖:
        configure 在类中 org.springframework.security.oauth2.config.annotation.web.configuration.AuthorizationServerConfigurerAdapter
        参数:
        security -
        抛出:
        Exception