Class AuthenticationObservationContext
java.lang.Object
io.micrometer.observation.Observation.Context
org.springframework.security.authentication.AuthenticationObservationContext
- All Implemented Interfaces:
- io.micrometer.observation.Observation.ContextView
public class AuthenticationObservationContext
extends io.micrometer.observation.Observation.Context
An 
Observation.Context used during authentications- Since:
- 6.0
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionClass<?>Get theAuthenticationManagerclass that processed the authenticationGet theAuthenticationrequest that was observedGet theAuthenticationresult that was observedvoidsetAuthenticationManagerClass(Class<?> authenticationManagerClass) Set theAuthenticationManagerclass that processed the authenticationvoidsetAuthenticationRequest(Authentication authenticationRequest) Set theAuthenticationrequest that was observedvoidsetAuthenticationResult(Authentication authenticationResult) Set theAuthenticationresult that was observedMethods inherited from class io.micrometer.observation.Observation.ContextaddHighCardinalityKeyValue, addHighCardinalityKeyValues, addLowCardinalityKeyValue, addLowCardinalityKeyValues, clear, computeIfAbsent, containsKey, get, getAllKeyValues, getContextualName, getError, getHighCardinalityKeyValue, getHighCardinalityKeyValues, getLowCardinalityKeyValue, getLowCardinalityKeyValues, getName, getOrDefault, getParentObservation, getRequired, put, remove, removeHighCardinalityKeyValue, removeHighCardinalityKeyValues, removeLowCardinalityKeyValue, removeLowCardinalityKeyValues, setContextualName, setError, setName, setParentObservation, toString
- 
Constructor Details- 
AuthenticationObservationContextpublic AuthenticationObservationContext()
 
- 
- 
Method Details- 
getAuthenticationRequestGet theAuthenticationrequest that was observed- Returns:
- the observed Authenticationrequest
 
- 
setAuthenticationRequestSet theAuthenticationrequest that was observed- Parameters:
- authenticationRequest- the observed- Authenticationrequest
 
- 
getAuthenticationResultGet theAuthenticationresult that was observedNote that if authentication failed, no Authenticationresult can be observed. In that case, this returnsnull.- Returns:
- any observed Authenticationresult,nullotherwise
 
- 
setAuthenticationResultSet theAuthenticationresult that was observed- Parameters:
- authenticationResult- the observed- Authenticationresult
 
- 
getAuthenticationManagerClassGet theAuthenticationManagerclass that processed the authentication- Returns:
- the observed AuthenticationManagerclass
 
- 
setAuthenticationManagerClassSet theAuthenticationManagerclass that processed the authentication- Parameters:
- authenticationManagerClass- the observed- AuthenticationManagerclass
 
 
-