类 AbstractGrantAuthenticationProvider

java.lang.Object
cn.bbwres.biscuit.security.oauth2.grant.AbstractGrantAuthenticationProvider
所有已实现的接口:
org.springframework.security.authentication.AuthenticationProvider
直接已知子类:
UsernamePasswordGrantAuthenticationProvider

public abstract class AbstractGrantAuthenticationProvider extends Object implements org.springframework.security.authentication.AuthenticationProvider
GrantAuthenticationProvider 抽象类
作者:
zhanglinfeng
  • 构造器概要

    构造器
    构造器
    说明
    AbstractGrantAuthenticationProvider(org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService authorizationService, org.springframework.security.oauth2.server.authorization.token.OAuth2TokenGenerator<?> tokenGenerator)
     
  • 方法概要

    修饰符和类型
    方法
    说明
    org.springframework.security.core.Authentication
    authenticate(org.springframework.security.core.Authentication authentication)
    Performs authentication with the same contract as AuthenticationManager.authenticate(Authentication) .
    protected abstract org.springframework.security.core.Authentication
    authenticateHandler(org.springframework.security.oauth2.server.authorization.client.RegisteredClient registeredClient, org.springframework.security.oauth2.server.authorization.authentication.OAuth2AuthorizationGrantAuthenticationToken oauth2AuthorizationGrantAuthentication)
    认证处理

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    从接口继承的方法 org.springframework.security.authentication.AuthenticationProvider

    supports
  • 构造器详细资料

    • AbstractGrantAuthenticationProvider

      public AbstractGrantAuthenticationProvider(org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService authorizationService, org.springframework.security.oauth2.server.authorization.token.OAuth2TokenGenerator<?> tokenGenerator)
  • 方法详细资料

    • authenticate

      public org.springframework.security.core.Authentication authenticate(org.springframework.security.core.Authentication authentication) throws org.springframework.security.core.AuthenticationException
      Performs authentication with the same contract as AuthenticationManager.authenticate(Authentication) .
      指定者:
      authenticate 在接口中 org.springframework.security.authentication.AuthenticationProvider
      参数:
      authentication - the authentication request object.
      返回:
      a fully authenticated object including credentials. May return null if the AuthenticationProvider is unable to support authentication of the passed Authentication object. In such a case, the next AuthenticationProvider that supports the presented Authentication class will be tried.
      抛出:
      org.springframework.security.core.AuthenticationException - if authentication fails.
    • authenticateHandler

      protected abstract org.springframework.security.core.Authentication authenticateHandler(org.springframework.security.oauth2.server.authorization.client.RegisteredClient registeredClient, org.springframework.security.oauth2.server.authorization.authentication.OAuth2AuthorizationGrantAuthenticationToken oauth2AuthorizationGrantAuthentication) throws org.springframework.security.core.AuthenticationException
      认证处理
      参数:
      registeredClient - client 信息
      oauth2AuthorizationGrantAuthentication - 请求参数
      返回:
      Authentication 认证数据
      抛出:
      org.springframework.security.core.AuthenticationException