クラス 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
の結果を取得するvoid
setAuthenticationManagerClass
(ClassSE<?> authenticationManagerClass) 認証を処理したAuthenticationManager
クラスを設定しますvoid
setAuthenticationRequest
(Authentication authenticationRequest) 観測されたAuthentication
リクエストを設定void
setAuthenticationResult
(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
クラス