Interface AuthorizationEventPublisher
-
- All Known Implementing Classes:
SpringAuthorizationEventPublisher
public interface AuthorizationEventPublisherA contract for publishing authorization events- Since:
- 5.7
- See Also:
AuthorizationManager
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> voidpublishAuthorizationEvent(java.util.function.Supplier<Authentication> authentication, T object, AuthorizationDecision decision)Publish the given details in the form of an event, typicallyAuthorizationGrantedEventorAuthorizationDeniedEvent.
-
-
-
Method Detail
-
publishAuthorizationEvent
<T> void publishAuthorizationEvent(java.util.function.Supplier<Authentication> authentication, T object, AuthorizationDecision decision)
Publish the given details in the form of an event, typicallyAuthorizationGrantedEventorAuthorizationDeniedEvent. 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- aSupplierfor the current userobject- the secured objectdecision- the decision about whether the user may access the secured object
-
-