public class

AuthorizationFailureEvent

extends AbstractAuthorizationEvent
java.lang.Object
   ↳ java.util.EventObject
     ↳ org.springframework.context.ApplicationEvent
       ↳ org.springframework.security.access.event.AbstractAuthorizationEvent
         ↳ org.springframework.security.access.event.AuthorizationFailureEvent

Class Overview

Indicates a secure object invocation failed because the principal could not be authorized for the request.

This event might be thrown as a result of either an AccessDecisionManager or an AfterInvocationManager.

Summary

[Expand]
Inherited Fields
From class java.util.EventObject
Public Constructors
AuthorizationFailureEvent(Object secureObject, Collection<ConfigAttribute> attributes, Authentication authentication, AccessDeniedException accessDeniedException)
Construct the event.
Public Methods
AccessDeniedException getAccessDeniedException()
Authentication getAuthentication()
Collection<ConfigAttribute> getConfigAttributes()
[Expand]
Inherited Methods
From class org.springframework.context.ApplicationEvent
From class java.util.EventObject
From class java.lang.Object

Public Constructors

public AuthorizationFailureEvent (Object secureObject, Collection<ConfigAttribute> attributes, Authentication authentication, AccessDeniedException accessDeniedException)

Construct the event.

Parameters
secureObject the secure object
attributes that apply to the secure object
authentication that was found in the SecurityContextHolder
accessDeniedException that was returned by the AccessDecisionManager
Throws
IllegalArgumentException if any null arguments are presented.

Public Methods

public AccessDeniedException getAccessDeniedException ()

public Authentication getAuthentication ()

public Collection<ConfigAttribute> getConfigAttributes ()