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) -
Method Summary
Methods inherited from class org.springframework.security.authorization.event.AuthorizationEvent
getAuthentication, getAuthorizationDecision
Methods inherited from class org.springframework.context.ApplicationEvent
getTimestamp
Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
AuthorizationGrantedEvent
public AuthorizationGrantedEvent(Supplier<Authentication> authentication, T object, AuthorizationDecision decision)
-
-
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
-