クラス 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
  • コンストラクターの詳細

    • AuthenticationObservationContext

      public AuthenticationObservationContext()
  • メソッドの詳細

    • getAuthenticationRequest

      public Authentication getAuthenticationRequest()
      観測された Authentication リクエストを取得する
      戻り値:
      観測された Authentication リクエスト
    • setAuthenticationRequest

      public void setAuthenticationRequest(Authentication authenticationRequest)
      観測された Authentication リクエストを設定
      パラメーター:
      authenticationRequest - 観測された Authentication リクエスト
    • getAuthenticationResult

      public Authentication getAuthenticationResult()
      観測された Authentication の結果を取得する

      認証が失敗した場合、Authentication の結果は観察できないことに注意してください。その場合、これは null を返します。

      戻り値:
      観測された Authentication の結果、それ以外の場合は null 
    • setAuthenticationResult

      public void setAuthenticationResult(Authentication authenticationResult)
      観測された Authentication 結果を設定
      パラメーター:
      authenticationResult - 観測された Authentication の結果
    • getAuthenticationManagerClass

      public ClassSE<?> getAuthenticationManagerClass()
      認証を処理した AuthenticationManager クラスを取得します
      戻り値:
      観測された AuthenticationManager クラス
    • setAuthenticationManagerClass

      public void setAuthenticationManagerClass(ClassSE<?> authenticationManagerClass)
      認証を処理した AuthenticationManager クラスを設定します
      パラメーター:
      authenticationManagerClass - 観測された AuthenticationManager クラス