Class AuthorizationFailureEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.springframework.security.access.event.AbstractAuthorizationEvent
org.springframework.security.access.event.AuthorizationFailureEvent
- All Implemented Interfaces:
Serializable
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
.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionAuthorizationFailureEvent
(Object secureObject, Collection<ConfigAttribute> attributes, Authentication authentication, AccessDeniedException accessDeniedException) Construct the event. -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class org.springframework.context.ApplicationEvent
getTimestamp
Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
AuthorizationFailureEvent
public AuthorizationFailureEvent(Object secureObject, Collection<ConfigAttribute> attributes, Authentication authentication, AccessDeniedException accessDeniedException) Construct the event.- Parameters:
secureObject
- the secure objectattributes
- that apply to the secure objectauthentication
- that was found in theSecurityContextHolder
accessDeniedException
- that was returned by theAccessDecisionManager
- Throws:
IllegalArgumentException
- if any null arguments are presented.
-
-
Method Details
-
getAccessDeniedException
-
getAuthentication
-
getConfigAttributes
-