クラス IpAddressAuthorizationManager
java.lang.ObjectSE
org.springframework.security.web.access.IpAddressAuthorizationManager
- 実装されたすべてのインターフェース:
AuthorizationManager<RequestAuthorizationContext>
public final class IpAddressAuthorizationManager
extends ObjectSE
implements AuthorizationManager<RequestAuthorizationContext>
現在のリクエストに指定されたアドレスまたはアドレスの範囲が含まれているかどうかを判断する
AuthorizationManager
- 導入:
- 6.3
メソッドのサマリー
修飾子と型メソッド説明check
(SupplierSE<Authentication> authentication, RequestAuthorizationContext requestAuthorizationContext) 特定の認証およびオブジェクトにアクセスを許可するかどうかを決定します。hasIpAddress
(StringSE ipAddress) 指定された IP アドレスを使用してIpAddressAuthorizationManager
のインスタンスを作成します。クラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSE
インターフェース org.springframework.security.authorization.AuthorizationManager から継承されたメソッド
verify
メソッドの詳細
hasIpAddress
指定された IP アドレスを使用してIpAddressAuthorizationManager
のインスタンスを作成します。- パラメーター:
ipAddress
- リクエストが必要なアドレスまたはアドレスの範囲- 戻り値:
- 新しいインスタンス
check
public AuthorizationDecision check(SupplierSE<Authentication> authentication, RequestAuthorizationContext requestAuthorizationContext) インターフェースからコピーされた説明:AuthorizationManager
特定の認証およびオブジェクトにアクセスを許可するかどうかを決定します。- 次で指定:
- インターフェース
AuthorizationManager<RequestAuthorizationContext>
のcheck
- パラメーター:
authentication
- チェックするAuthentication
のSupplier
SErequestAuthorizationContext
- チェックするAuthorizationManager
オブジェクト- 戻り値:
AuthorizationDecision
、または決定できない場合は null