Class SecurityObservationSettings
java.lang.Object
org.springframework.security.config.observation.SecurityObservationSettings
An
ObservationPredicate
that can be used to change which Spring Security
observations are made with Micrometer.
By default, web requests are not observed and authentications and authorizations are observed.
- Since:
- 6.4
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A builder for configuring aSecurityObservationSettings
-
Method Summary
Modifier and TypeMethodDescriptionstatic SecurityObservationSettings
Make no Spring Security observationsboolean
boolean
boolean
Begin the configuration of aSecurityObservationSettings
-
Method Details
-
noObservations
Make no Spring Security observations- Returns:
- a
SecurityObservationSettings
with all exclusions turned on
-
withDefaults
Begin the configuration of aSecurityObservationSettings
- Returns:
- a
SecurityObservationSettings.Builder
where filter chain observations are off and authn/authz observations are on
-
shouldObserveRequests
public boolean shouldObserveRequests() -
shouldObserveAuthentications
public boolean shouldObserveAuthentications() -
shouldObserveAuthorizations
public boolean shouldObserveAuthorizations()
-