Class ObservationReactiveAuthenticationManager
java.lang.Object
org.springframework.security.authentication.ObservationReactiveAuthenticationManager
- All Implemented Interfaces:
ReactiveAuthenticationManager
public class ObservationReactiveAuthenticationManager
extends Object
implements ReactiveAuthenticationManager
An
ReactiveAuthenticationManager
that observes the authentication- Since:
- 6.0
-
Constructor Summary
ConstructorDescriptionObservationReactiveAuthenticationManager
(io.micrometer.observation.ObservationRegistry registry, ReactiveAuthenticationManager delegate) -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<Authentication>
authenticate
(Authentication authentication) Attempts to authenticate the providedAuthentication
void
setObservationConvention
(io.micrometer.observation.ObservationConvention<AuthenticationObservationContext> convention) Use the provided convention for reporting observation data
-
Constructor Details
-
ObservationReactiveAuthenticationManager
public ObservationReactiveAuthenticationManager(io.micrometer.observation.ObservationRegistry registry, ReactiveAuthenticationManager delegate)
-
-
Method Details
-
authenticate
public reactor.core.publisher.Mono<Authentication> authenticate(Authentication authentication) throws AuthenticationException Description copied from interface:ReactiveAuthenticationManager
Attempts to authenticate the providedAuthentication
- Specified by:
authenticate
in interfaceReactiveAuthenticationManager
- Parameters:
authentication
- theAuthentication
to test- Returns:
- if authentication is successful an
Authentication
is returned. If authentication cannot be determined, an empty Mono is returned. If authentication fails, a Mono error is returned. - Throws:
AuthenticationException
-
setObservationConvention
public void setObservationConvention(io.micrometer.observation.ObservationConvention<AuthenticationObservationContext> convention) Use the provided convention for reporting observation data- Parameters:
convention
- The provided convention- Since:
- 6.1
-