Class OAuth2ResourceOwnerPasswordCredentialsAuthenticationProvider

java.lang.Object
io.jmix.authserver.authentication.OAuth2ResourceOwnerPasswordCredentialsAuthenticationProvider
All Implemented Interfaces:
org.springframework.security.authentication.AuthenticationProvider

public class OAuth2ResourceOwnerPasswordCredentialsAuthenticationProvider extends Object implements org.springframework.security.authentication.AuthenticationProvider
An AuthenticationProvider implementation for the OAuth 2.0 Resource Owner Password Credentials Grant.
  • Constructor Summary

    Constructors
    Constructor
    Description
    OAuth2ResourceOwnerPasswordCredentialsAuthenticationProvider(org.springframework.security.oauth2.server.authorization.token.OAuth2TokenGenerator<? extends org.springframework.security.oauth2.core.OAuth2Token> tokenGenerator, org.springframework.security.authentication.AuthenticationManager authenticationManager, org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService authorizationService)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.security.core.Authentication
    authenticate(org.springframework.security.core.Authentication authentication)
     
    boolean
    supports(Class<?> authentication)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • OAuth2ResourceOwnerPasswordCredentialsAuthenticationProvider

      public OAuth2ResourceOwnerPasswordCredentialsAuthenticationProvider(org.springframework.security.oauth2.server.authorization.token.OAuth2TokenGenerator<? extends org.springframework.security.oauth2.core.OAuth2Token> tokenGenerator, org.springframework.security.authentication.AuthenticationManager authenticationManager, org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService authorizationService)
  • Method Details

    • authenticate

      public org.springframework.security.core.Authentication authenticate(org.springframework.security.core.Authentication authentication) throws org.springframework.security.core.AuthenticationException
      Specified by:
      authenticate in interface org.springframework.security.authentication.AuthenticationProvider
      Throws:
      org.springframework.security.core.AuthenticationException
    • supports

      public boolean supports(Class<?> authentication)
      Specified by:
      supports in interface org.springframework.security.authentication.AuthenticationProvider