Class AuthorizationDeniedEvent<T>

java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.springframework.security.authorization.event.AuthorizationEvent
org.springframework.security.authorization.event.AuthorizationDeniedEvent<T>
All Implemented Interfaces:
Serializable, org.springframework.core.ResolvableTypeProvider

public class AuthorizationDeniedEvent<T> extends AuthorizationEvent implements org.springframework.core.ResolvableTypeProvider
An ApplicationEvent which indicates failed authorization.
Since:
5.7
See Also:
  • Constructor Details

  • Method Details

    • getObject

      public T getObject()
      Get the object to which access was requested
      Overrides:
      getObject in class AuthorizationEvent
      Returns:
      the object to which access was requested
      Since:
      5.8
    • getResolvableType

      public org.springframework.core.ResolvableType getResolvableType()
      Get ResolvableType of this class.
      Specified by:
      getResolvableType in interface org.springframework.core.ResolvableTypeProvider
      Returns:
      ResolvableType
      Since:
      6.5