类 OAuth2ResourceOwnerPasswordAuthenticationProvider

java.lang.Object
xyz.raylab.authorizationserver.oauth2.authentication.password.OAuth2ResourceOwnerPasswordAuthenticationProvider
所有已实现的接口:
org.springframework.security.authentication.AuthenticationProvider

public class OAuth2ResourceOwnerPasswordAuthenticationProvider extends Object implements org.springframework.security.authentication.AuthenticationProvider
  • 构造器概要

    构造器
    构造器
    说明
    OAuth2ResourceOwnerPasswordAuthenticationProvider(org.springframework.security.authentication.AuthenticationManager authenticationManager, org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService authorizationService, org.springframework.security.oauth2.server.authorization.token.OAuth2TokenGenerator<? extends org.springframework.security.oauth2.core.OAuth2Token> tokenGenerator)
    Constructs an OAuth2ResourceOwnerPasswordAuthenticationProviderNew 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.authentication.AuthenticationManager authenticationManager, org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService authorizationService, org.springframework.security.oauth2.server.authorization.token.OAuth2TokenGenerator<? extends org.springframework.security.oauth2.core.OAuth2Token> tokenGenerator)
      Constructs an OAuth2ResourceOwnerPasswordAuthenticationProviderNew using the provided parameters.
      参数:
      authenticationManager - the authentication manager
      authorizationService - the authorization service
      tokenGenerator - the token generator
      从以下版本开始:
      0.2.3
  • 方法详细资料

    • 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