Class ObservationSecurityContextChangedListener
java.lang.Object
org.springframework.security.core.context.ObservationSecurityContextChangedListener
- All Implemented Interfaces:
SecurityContextChangedListener
public final class ObservationSecurityContextChangedListener
extends Object
implements SecurityContextChangedListener
A
SecurityContextChangedListener
that adds events to an existing
Observation
If no Observation
is present when an event is fired, then the event is
unrecorded.- Since:
- 6.0
-
Constructor Summary
ConstructorDescriptionObservationSecurityContextChangedListener
(io.micrometer.observation.ObservationRegistry registry) -
Method Summary
-
Constructor Details
-
ObservationSecurityContextChangedListener
public ObservationSecurityContextChangedListener(io.micrometer.observation.ObservationRegistry registry) - Parameters:
registry
- theObservationRegistry
for looking up the surroundingObservation
-
-
Method Details
-
securityContextChanged
- Specified by:
securityContextChanged
in interfaceSecurityContextChangedListener
-