クラス ObservationAuthorizationManager<T>

java.lang.ObjectSE
org.springframework.security.authorization.ObservationAuthorizationManager<T>
実装されたすべてのインターフェース:
org.springframework.beans.factory.Awareorg.springframework.context.MessageSourceAwareAuthorizationManager<T>

public final class ObservationAuthorizationManager<T> extends ObjectSE implements AuthorizationManager<T>, org.springframework.context.MessageSourceAware
認可を監視する AuthorizationManager
導入:
6.0
  • コンストラクターの詳細

    • ObservationAuthorizationManager

      public ObservationAuthorizationManager(io.micrometer.observation.ObservationRegistry registry, AuthorizationManager<T> delegate)
  • メソッドの詳細

    • check

      public AuthorizationDecision check(SupplierSE<Authentication> authentication, T object)
      インターフェースからコピーされた説明: AuthorizationManager
      特定の認証およびオブジェクトにアクセスを許可するかどうかを決定します。
      次で指定:
      インターフェース AuthorizationManager<T>check 
      パラメーター:
      authentication - チェックする AuthenticationSupplierSE
      object - チェックする AuthorizationManager オブジェクト
      戻り値:
      AuthorizationDecision、または決定できない場合は null
    • setObservationConvention

      public void setObservationConvention(io.micrometer.observation.ObservationConvention<AuthorizationObservationContext<?>> convention)
      観測データを報告するために提供された規則を使用する
      パラメーター:
      convention - 提供された規約
      導入:
      6.1
    • setMessageSource

      public void setMessageSource(org.springframework.context.MessageSource messageSource)
      このオブジェクトが実行される MessageSource を設定します。
      次で指定:
      インターフェース org.springframework.context.MessageSourceAwaresetMessageSource 
      パラメーター:
      messageSource - このオブジェクトによって使用されるメッセージソース
      導入:
      6.2