Class AuthorizationGrantedEvent<T>
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.springframework.security.authorization.event.AuthorizationEvent
org.springframework.security.authorization.event.AuthorizationGrantedEvent<T>
- All Implemented Interfaces:
Serializable
An
ApplicationEvent
which indicates successful authorization.- Since:
- 5.7
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionAuthorizationGrantedEvent
(Supplier<Authentication> authentication, T object, AuthorizationDecision decision) Deprecated.AuthorizationGrantedEvent
(Supplier<Authentication> authentication, T object, AuthorizationResult result) -
Method Summary
Methods inherited from class org.springframework.security.authorization.event.AuthorizationEvent
getAuthentication, getAuthorizationDecision, getAuthorizationResult
Methods inherited from class org.springframework.context.ApplicationEvent
getTimestamp
Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
AuthorizationGrantedEvent
@Deprecated public AuthorizationGrantedEvent(Supplier<Authentication> authentication, T object, AuthorizationDecision decision) Deprecated.please use a constructor that takes anAuthorizationResult
-
AuthorizationGrantedEvent
public AuthorizationGrantedEvent(Supplier<Authentication> authentication, T object, AuthorizationResult result) - Since:
- 6.4
-
-
Method Details
-
getObject
Get the object to which access was requested- Overrides:
getObject
in classAuthorizationEvent
- Returns:
- the object to which access was requested
- Since:
- 5.8
-
AuthorizationResult