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 SummaryConstructorsConstructorDescriptionObservationReactiveAuthenticationManager(io.micrometer.observation.ObservationRegistry registry, ReactiveAuthenticationManager delegate) 
- 
Method SummaryModifier and TypeMethodDescriptionreactor.core.publisher.Mono<Authentication>authenticate(Authentication authentication) Attempts to authenticate the providedAuthenticationvoidsetObservationConvention(io.micrometer.observation.ObservationConvention<AuthenticationObservationContext> convention) Use the provided convention for reporting observation data
- 
Constructor Details- 
ObservationReactiveAuthenticationManagerpublic ObservationReactiveAuthenticationManager(io.micrometer.observation.ObservationRegistry registry, ReactiveAuthenticationManager delegate) 
 
- 
- 
Method Details- 
authenticatepublic reactor.core.publisher.Mono<Authentication> authenticate(Authentication authentication) throws AuthenticationException Description copied from interface:ReactiveAuthenticationManagerAttempts to authenticate the providedAuthentication- Specified by:
- authenticatein interface- ReactiveAuthenticationManager
- Parameters:
- authentication- the- Authenticationto test
- Returns:
- if authentication is successful an Authenticationis returned. If authentication cannot be determined, an empty Mono is returned. If authentication fails, a Mono error is returned.
- Throws:
- AuthenticationException
 
- 
setObservationConventionpublic void setObservationConvention(io.micrometer.observation.ObservationConvention<AuthenticationObservationContext> convention) Use the provided convention for reporting observation data- Parameters:
- convention- The provided convention
- Since:
- 6.1
 
 
-