Interface AuthorizationEventPublisher
- All Known Implementing Classes:
SpringAuthorizationEventPublisher
public interface AuthorizationEventPublisher
A contract for publishing authorization events
- Since:
- 5.7
- See Also:
-
Method Summary
Modifier and TypeMethodDescription<T> void
publishAuthorizationEvent
(Supplier<Authentication> authentication, T object, AuthorizationDecision decision) Deprecated.default <T> void
publishAuthorizationEvent
(Supplier<Authentication> authentication, T object, AuthorizationResult result) Publish the given details in the form of an event, typicallyAuthorizationGrantedEvent
orAuthorizationDeniedEvent
.
-
Method Details
-
publishAuthorizationEvent
@Deprecated <T> void publishAuthorizationEvent(Supplier<Authentication> authentication, T object, AuthorizationDecision decision) Deprecated.Publish the given details in the form of an event, typicallyAuthorizationGrantedEvent
orAuthorizationDeniedEvent
. Note that success events can be very noisy if enabled by default. Because of this implementations may choose to drop success events by default.- Type Parameters:
T
- the secured object's type- Parameters:
authentication
- aSupplier
for the current userobject
- the secured objectdecision
- the decision about whether the user may access the secured object
-
publishAuthorizationEvent
default <T> void publishAuthorizationEvent(Supplier<Authentication> authentication, T object, AuthorizationResult result) Publish the given details in the form of an event, typicallyAuthorizationGrantedEvent
orAuthorizationDeniedEvent
. Note that success events can be very noisy if enabled by default. Because of this implementations may choose to drop success events by default.- Type Parameters:
T
- the secured object's type- Parameters:
authentication
- aSupplier
for the current userobject
- the secured objectresult
-AuthorizationResult
the result about whether the user may access the secured object- Since:
- 6.4
-
publishAuthorizationEvent(Supplier, Object, AuthorizationResult)
instead