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:
java.io.Serializable
@Deprecated public class AuthorizationFailureEvent extends AbstractAuthorizationEvent
Deprecated.UseAuthorizationDeniedEvent
insteadIndicates 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 anAfterInvocationManager
.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AuthorizationFailureEvent(java.lang.Object secureObject, java.util.Collection<ConfigAttribute> attributes, Authentication authentication, AccessDeniedException accessDeniedException)
Deprecated.Construct the event.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AccessDeniedException
getAccessDeniedException()
Deprecated.Authentication
getAuthentication()
Deprecated.java.util.Collection<ConfigAttribute>
getConfigAttributes()
Deprecated.
-
-
-
Constructor Detail
-
AuthorizationFailureEvent
public AuthorizationFailureEvent(java.lang.Object secureObject, java.util.Collection<ConfigAttribute> attributes, Authentication authentication, AccessDeniedException accessDeniedException)
Deprecated.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:
java.lang.IllegalArgumentException
- if any null arguments are presented.
-
-
Method Detail
-
getAccessDeniedException
public AccessDeniedException getAccessDeniedException()
Deprecated.
-
getAuthentication
public Authentication getAuthentication()
Deprecated.
-
getConfigAttributes
public java.util.Collection<ConfigAttribute> getConfigAttributes()
Deprecated.
-
-