クラス AclEntryAfterInvocationProvider

java.lang.ObjectSE
org.springframework.security.acls.afterinvocation.AbstractAclProvider
org.springframework.security.acls.afterinvocation.AclEntryAfterInvocationProvider
実装されたすべてのインターフェース:
org.springframework.beans.factory.Awareorg.springframework.context.MessageSourceAwareAfterInvocationProvider

public class AclEntryAfterInvocationProvider extends AbstractAclProvider implements org.springframework.context.MessageSourceAware
セキュアオブジェクトの呼び出しから返されたドメインオブジェクトインスタンスが与えられた場合、プリンシパルが AclService で定義されている適切な権限を持っていることを確認します。

AclService は、現在の Authentication オブジェクトのドメインオブジェクトインスタンスに関連付けられているアクセス制御リスト(ACL)のアクセス許可を取得するために使用されます。

この呼び出し後プロバイダーは、ConfigAttribute.getAttribute()AbstractAclProvider.processConfigAttribute と一致する場合に起動します。次に、プロバイダーは AclService から ACL を検索し、AbstractAclProvider.requirePermission 配列をそのメソッドに提示するときにプリンシパルが Acl.isGranted(List, List, boolean) であることを確認します。

多くの場合、ユーザーは AFTER_ACL_READ の AbstractAclProvider.processConfigAttribute と BasePermission.READAbstractAclProvider.requirePermission で AclEntryAfterInvocationProvider を設定します。これらもデフォルトです。

プリンシパルに十分な権限がない場合、AccessDeniedException がスローされます。

提供された returnedObject が null の場合、許可は常に付与され、null が返されます。

すべての比較と接頭辞は大文字と小文字が区別されます。

  • フィールドの詳細

    • logger

      protected static final org.apache.commons.logging.Log logger
    • messages

      protected org.springframework.context.support.MessageSourceAccessor messages
  • コンストラクターの詳細

    • AclEntryAfterInvocationProvider

      public AclEntryAfterInvocationProvider(AclService aclService, ListSE<Permission> requirePermission)
    • AclEntryAfterInvocationProvider

      public AclEntryAfterInvocationProvider(AclService aclService, StringSE processConfigAttribute, ListSE<Permission> requirePermission)
  • メソッドの詳細