类 OAuth2ResourceOwnerPasswordAuthenticationProvider

java.lang.Object
cn.herodotus.engine.oauth2.authorization.authentication.OAuth2ResourceOwnerPasswordAuthenticationProvider
所有已实现的接口:
org.springframework.security.authentication.AuthenticationProvider

public class OAuth2ResourceOwnerPasswordAuthenticationProvider extends Object implements org.springframework.security.authentication.AuthenticationProvider

Description: 自定义 OAuth2 密码模式认证 Provider

作者:
: gengwei.zheng
Date:
: 2022/2/22 16:02
  • 构造器概要

    构造器
    构造器
    说明
    OAuth2ResourceOwnerPasswordAuthenticationProvider(org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService authorizationService, org.springframework.security.oauth2.server.authorization.token.OAuth2TokenGenerator<? extends org.springframework.security.oauth2.core.OAuth2Token> tokenGenerator, org.springframework.security.authentication.AuthenticationManager authenticationManager)
    Constructs an OAuth2ClientCredentialsAuthenticationProvider using the provided parameters.
  • 方法概要

    修饰符和类型
    方法
    说明
    org.springframework.security.core.Authentication
    authenticate(org.springframework.security.core.Authentication authentication)
     
    boolean
    supports(Class<?> authentication)
     

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

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

    • OAuth2ResourceOwnerPasswordAuthenticationProvider

      public OAuth2ResourceOwnerPasswordAuthenticationProvider(org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService authorizationService, org.springframework.security.oauth2.server.authorization.token.OAuth2TokenGenerator<? extends org.springframework.security.oauth2.core.OAuth2Token> tokenGenerator, org.springframework.security.authentication.AuthenticationManager authenticationManager)
      Constructs an OAuth2ClientCredentialsAuthenticationProvider using the provided parameters.
      参数:
      authorizationService - the authorization service
      tokenGenerator - – the token generator
  • 方法详细资料

    • authenticate

      public org.springframework.security.core.Authentication authenticate(org.springframework.security.core.Authentication authentication) throws org.springframework.security.core.AuthenticationException
      指定者:
      authenticate 在接口中 org.springframework.security.authentication.AuthenticationProvider
      抛出:
      org.springframework.security.core.AuthenticationException
    • supports

      public boolean supports(Class<?> authentication)
      指定者:
      supports 在接口中 org.springframework.security.authentication.AuthenticationProvider