クラス AuthenticationObservationContext
java.lang.ObjectSE
io.micrometer.observation.Observation.Context
org.springframework.security.authentication.AuthenticationObservationContext
- 実装されているすべてのインターフェース:
io.micrometer.observation.Observation.ContextView
public class AuthenticationObservationContext
extends io.micrometer.observation.Observation.Context
認証中に使用される
Observation.Context - 導入:
- 6.0
コンストラクターの概要
コンストラクターメソッドのサマリー
修飾子と型メソッド説明ClassSE<?>認証を処理したAuthenticationManagerクラスを取得します観測されたAuthenticationリクエストを取得する観測されたAuthenticationの結果を取得するvoidsetAuthenticationManagerClass(ClassSE<?> authenticationManagerClass) 認証を処理したAuthenticationManagerクラスを設定しますvoidsetAuthenticationRequest(Authentication authenticationRequest) 観測されたAuthenticationリクエストを設定voidsetAuthenticationResult(Authentication authenticationResult) 観測されたAuthentication結果を設定クラス io.micrometer.observation.Observation.Context から継承されたメソッド
addHighCardinalityKeyValue, 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クラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, wait, waitSE, waitSEインターフェース io.micrometer.observation.Observation.ContextView から継承されたメソッド
getOrDefault
コンストラクターの詳細
AuthenticationObservationContext
public AuthenticationObservationContext()
メソッドの詳細
getAuthenticationRequest
観測されたAuthenticationリクエストを取得する- 戻り値:
- 観測された
Authenticationリクエスト
setAuthenticationRequest
観測されたAuthenticationリクエストを設定- パラメーター:
authenticationRequest- 観測されたAuthenticationリクエスト
getAuthenticationResult
観測されたAuthenticationの結果を取得する認証が失敗した場合、
Authenticationの結果は観測できないことに注意してください。その場合、これはnullを返します。- 戻り値:
- 観測された
Authenticationの結果、それ以外の場合はnull
setAuthenticationResult
観測されたAuthentication結果を設定- パラメーター:
authenticationResult- 観測されたAuthenticationの結果
getAuthenticationManagerClass
認証を処理したAuthenticationManagerクラスを取得します- 戻り値:
- 観測された
AuthenticationManagerクラス
setAuthenticationManagerClass
認証を処理したAuthenticationManagerクラスを設定します- パラメーター:
authenticationManagerClass- 観測されたAuthenticationManagerクラス