Class OAuth2ResourceOwnerPasswordAuthenticationProvider

    • Constructor Summary

      Constructors 
      Constructor Description
      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 OAuth2ResourceOwnerPasswordAuthenticationProvider using the provided parameters.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.springframework.security.core.Authentication authenticate​(org.springframework.security.core.Authentication authentication)  
      boolean supports​(java.lang.Class<?> authentication)  
      • Methods inherited from class java.lang.Object

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

      • 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 OAuth2ResourceOwnerPasswordAuthenticationProvider using the provided parameters.
    • Method Detail

      • 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​(java.lang.Class<?> authentication)
        Specified by:
        supports in interface org.springframework.security.authentication.AuthenticationProvider