Class ObservationReactiveAuthorizationManager<T>
java.lang.Object
org.springframework.security.authorization.ObservationReactiveAuthorizationManager<T>
- All Implemented Interfaces:
ReactiveAuthorizationManager<T>
public final class ObservationReactiveAuthorizationManager<T>
extends Object
implements ReactiveAuthorizationManager<T>
An
ReactiveAuthorizationManager
that observes the authentication- Since:
- 6.0
-
Constructor Summary
ConstructorDescriptionObservationReactiveAuthorizationManager
(io.micrometer.observation.ObservationRegistry registry, ReactiveAuthorizationManager<T> delegate) -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<AuthorizationDecision>
check
(reactor.core.publisher.Mono<Authentication> authentication, T object) Determines if access is granted for a specific authentication and object.void
setObservationConvention
(io.micrometer.observation.ObservationConvention<AuthorizationObservationContext<?>> convention) Use the provided convention for reporting observation dataMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.security.authorization.ReactiveAuthorizationManager
verify
-
Constructor Details
-
ObservationReactiveAuthorizationManager
public ObservationReactiveAuthorizationManager(io.micrometer.observation.ObservationRegistry registry, ReactiveAuthorizationManager<T> delegate)
-
-
Method Details
-
check
public reactor.core.publisher.Mono<AuthorizationDecision> check(reactor.core.publisher.Mono<Authentication> authentication, T object) Description copied from interface:ReactiveAuthorizationManager
Determines if access is granted for a specific authentication and object.- Specified by:
check
in interfaceReactiveAuthorizationManager<T>
- Parameters:
authentication
- the Authentication to checkobject
- the object to check- Returns:
- an decision or empty Mono if no decision could be made.
-
setObservationConvention
public void setObservationConvention(io.micrometer.observation.ObservationConvention<AuthorizationObservationContext<?>> convention) Use the provided convention for reporting observation data- Parameters:
convention
- The provided convention- Since:
- 6.1
-