Class OAuth2AuthorizationCodeAuthenticationProvider

    • Constructor Detail

      • OAuth2AuthorizationCodeAuthenticationProvider

        public OAuth2AuthorizationCodeAuthenticationProvider​(OAuth2AccessTokenResponseClient<OAuth2AuthorizationCodeGrantRequest> accessTokenResponseClient)
        Constructs an OAuth2AuthorizationCodeAuthenticationProvider using the provided parameters.
        Parameters:
        accessTokenResponseClient - the client used for requesting the access token credential from the Token Endpoint
    • 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