クラス 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方法の概要
修飾子と型メソッド説明static <T> AuthorizationManager<T> anyOf(AllRequiredFactorsAuthorizationManager<T>... managers) 少なくとも 1 つのAllRequiredFactorsAuthorizationManagerが許可されている場合にアクセス権を付与するAuthorizationManagerを作成します。authorize(SupplierSE<? extends @Nullable Authentication> authentication, T object) 各RequiredFactorについて、RequiredFactor.getAuthority()に一致する最初のFactorGrantedAuthority.getAuthority()を検索します。static <T> AllRequiredFactorsAuthorizationManager.Builder<T> builder()void使用するClockSE を設定します。クラス ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSEインターフェース AuthorizationManager から継承されたメソッド
verify
方法の詳細
anyOf
@SafeVarargsSE public static <T> AuthorizationManager<T> anyOf(AllRequiredFactorsAuthorizationManager<T>... managers) 少なくとも 1 つのAllRequiredFactorsAuthorizationManagerが許可されている場合にアクセス権を付与するAuthorizationManagerを作成します。すべてのマネージャーが拒否した場合、各マネージャーから一意のRequiredFactorErrorを収集します。- 型パラメーター:
- パラメーター:
managers- 使用するAllRequiredFactorsAuthorizationManagerを指定します。空にしたり、null 要素を含めたりすることはできません。- 戻り値:
- 使用する
AuthorizationManager - 導入:
- 7.1
- 関連事項:
setClock
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
- 戻り値: