类 UsernamePasswordGrantAuthenticationProvider

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

public class UsernamePasswordGrantAuthenticationProvider extends AbstractGrantAuthenticationProvider
账号密码登录
作者:
zhanglinfeng
  • 构造器概要

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

    修饰符和类型
    方法
    说明
    protected org.springframework.security.core.Authentication
    authenticateHandler(org.springframework.security.oauth2.server.authorization.client.RegisteredClient registeredClient, org.springframework.security.oauth2.server.authorization.authentication.OAuth2AuthorizationGrantAuthenticationToken oauth2AuthorizationGrantAuthentication)
    认证处理
    boolean
    supports(Class<?> authentication)
    Returns true if this AuthenticationProvider supports the indicated Authentication object.

    从类继承的方法 cn.bbwres.biscuit.security.oauth2.grant.AbstractGrantAuthenticationProvider

    authenticate

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

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 构造器详细资料

    • UsernamePasswordGrantAuthenticationProvider

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

    • authenticateHandler

      protected 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
      认证处理
      指定者:
      authenticateHandler 在类中 AbstractGrantAuthenticationProvider
      参数:
      registeredClient - client 信息
      oauth2AuthorizationGrantAuthentication - 请求参数
      返回:
      Authentication 认证数据
      抛出:
      org.springframework.security.core.AuthenticationException
    • supports

      public boolean supports(Class<?> authentication)
      Returns true if this AuthenticationProvider supports the indicated Authentication object.

      Returning true does not guarantee an AuthenticationProvider will be able to authenticate the presented Authentication object. It simply indicates it can support closer evaluation of it. An AuthenticationProvider can still return null from the AbstractGrantAuthenticationProvider.authenticate(Authentication) method to indicate another AuthenticationProvider should be tried.

      Selection of an AuthenticationProvider capable of performing authentication is conducted at runtime the ProviderManager.

      参数:
      authentication -
      返回:
      true if the implementation can more closely evaluate the Authentication class presented