クラス AuthenticatedAuthorizationManager<T>
- java.lang.Object
-
- org.springframework.security.authorization.AuthenticatedAuthorizationManager<T>
- 型パラメーター:
T
- 実行されているオブジェクト認可の型。これはしません。
- 実装されたすべてのインターフェース:
AuthorizationManager<T>
public final class AuthenticatedAuthorizationManager<T> extends java.lang.Object implements AuthorizationManager<T>
現在のユーザーが認証されているかどうかを判別するAuthorizationManager
。- 導入:
- 5.5
コンストラクターのサマリー
コンストラクター コンストラクター 説明 AuthenticatedAuthorizationManager()
メソッドのサマリー
すべてのメソッド 静的メソッド インスタンスメソッド 具象メソッド 修飾子と型 メソッド 説明 static <T> AuthenticatedAuthorizationManager<T>
authenticated()
AuthenticatedAuthorizationManager
のインスタンスを作成します。AuthorizationDecision
check(java.util.function.Supplier<Authentication> authentication, T object)
Authentication
が匿名で認証されていないかどうかを評価することにより、現在のユーザーが認可されているかどうかを判別します。クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
インターフェース org.springframework.security.authorization.AuthorizationManager から継承されたメソッド
verify
メソッドの詳細
authenticated
public static <T> AuthenticatedAuthorizationManager<T> authenticated()
AuthenticatedAuthorizationManager
のインスタンスを作成します。- 型パラメーター:
T
- 認可されるオブジェクトの型- 戻り値:
- 新しいインスタンス
check
public AuthorizationDecision check(java.util.function.Supplier<Authentication> authentication, T object)
Authentication
が匿名で認証されていないかどうかを評価することにより、現在のユーザーが認可されているかどうかを判別します。- 次で指定:
- インターフェース
AuthorizationManager<T>
のcheck
- パラメーター:
authentication
- チェックするAuthentication
のSupplier
object
- チェックするAuthenticatedAuthorizationManager
オブジェクト- 戻り値:
AuthorizationDecision