クラス AllRequiredFactorsAuthorizationManager<T>
java.lang.ObjectSE
org.springframework.security.authorization.AllRequiredFactorsAuthorizationManager<T>
- 実装済みのインターフェース一覧:
AuthorizationManager<T>
public final class AllRequiredFactorsAuthorizationManager<T>
extends ObjectSE
implements AuthorizationManager<T>
Authentication に各 RequiredFactor の有効期限が切れていない FactorGrantedAuthority が含まれているかどうかを評価することによって、現在のユーザーが承認されているかどうかを判断する AuthorizationManager。- 導入:
- 7.0
- 関連事項:
ネストされたクラスの概要
ネストされたクラス修飾子と型クラス説明static final class方法の概要
修飾子と型メソッド説明authorize(SupplierSE<? extends @Nullable Authentication> authentication, T object) 各RequiredFactorについて、RequiredFactor.getAuthority()に一致する最初のFactorGrantedAuthority.getAuthority()を検索します。static <T> AllRequiredFactorsAuthorizationManager.Builder<T>builder()void使用するClockSE を設定します。クラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSEインターフェース org.springframework.security.authorization.AuthorizationManager から継承されたメソッド
verify
メソッドの詳細
setClock
使用するClockSE を設定します。- パラメーター:
clock- 使用するClockSE。null にはできません。
authorize
public FactorAuthorizationDecision authorize(SupplierSE<? extends @Nullable Authentication> authentication, T object) 各RequiredFactorについて、RequiredFactor.getAuthority()に一致する最初のFactorGrantedAuthority.getAuthority()を検索します。FactorGrantedAuthority.getIssuedAt()はRequiredFactor.getValidDuration()よりも新しい必要があります(NULL でない場合)。- 次で指定:
- インターフェース
AuthorizationManager<T>のauthorize - パラメーター:
authentication- チェックするAuthenticationのSupplierSEobject- 認可をチェックするオブジェクト(使用されません)。- 戻り値:
FactorAuthorizationDecision
builder
- 戻り値: