Class DefaultOAuth2AuthenticationEventPublisher

java.lang.Object
org.springframework.security.authentication.DefaultAuthenticationEventPublisher
cn.herodotus.engine.oauth2.authentication.response.DefaultOAuth2AuthenticationEventPublisher
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.context.ApplicationEventPublisherAware, org.springframework.security.authentication.AuthenticationEventPublisher

public class DefaultOAuth2AuthenticationEventPublisher extends org.springframework.security.authentication.DefaultAuthenticationEventPublisher

Description: 扩展的 DefaultAuthenticationEventPublisher

支持 OAuth2AuthenticationException 解析

Author:
: gengwei.zheng
Date:
: 2022/7/9 13:47
  • Constructor Summary

    Constructors
    Constructor
    Description
    DefaultOAuth2AuthenticationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    publishAuthenticationFailure(org.springframework.security.core.AuthenticationException exception, org.springframework.security.core.Authentication authentication)
     

    Methods inherited from class org.springframework.security.authentication.DefaultAuthenticationEventPublisher

    publishAuthenticationSuccess, setAdditionalExceptionMappings, setAdditionalExceptionMappings, setApplicationEventPublisher, setDefaultAuthenticationFailureEvent

    Methods inherited from class java.lang.Object

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

    • DefaultOAuth2AuthenticationEventPublisher

      public DefaultOAuth2AuthenticationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
  • Method Details

    • publishAuthenticationFailure

      public void publishAuthenticationFailure(org.springframework.security.core.AuthenticationException exception, org.springframework.security.core.Authentication authentication)
      Specified by:
      publishAuthenticationFailure in interface org.springframework.security.authentication.AuthenticationEventPublisher
      Overrides:
      publishAuthenticationFailure in class org.springframework.security.authentication.DefaultAuthenticationEventPublisher