クラス Jsr250AuthorizationManager

java.lang.ObjectSE
org.springframework.security.authorization.method.Jsr250AuthorizationManager
実装されたすべてのインターフェース:
AuthorizationManager<org.aopalliance.intercept.MethodInvocation>

public final class Jsr250AuthorizationManager extends ObjectSE implements AuthorizationManager<org.aopalliance.intercept.MethodInvocation>
Authentication に JSR-250 セキュリティアノテーションからの指定された権限が含まれているかどうかを評価することにより、Authentication が MethodInvocation を呼び出すことができるかどうかを判別できる AuthorizationManager
導入:
5.6
  • コンストラクターの詳細

    • Jsr250AuthorizationManager

      public Jsr250AuthorizationManager()
  • メソッドの詳細

    • setAuthoritiesAuthorizationManager

      public void setAuthoritiesAuthorizationManager(AuthorizationManager<CollectionSE<StringSE>> authoritiesAuthorizationManager)
      権限文字列のコレクションを受け入れる AuthorizationManager を設定します。
      パラメーター:
      authoritiesAuthorizationManager - 使用する権限文字列のコレクションを受け入れる AuthorizationManager
      導入:
      6.2
    • setRolePrefix

      public void setRolePrefix(StringSE rolePrefix)
      ロールプレフィックスを設定します。デフォルトは "ROLE_" です。
      パラメーター:
      rolePrefix - 使用するロールプレフィックス
    • check

      public AuthorizationDecision check(SupplierSE<Authentication> authentication, org.aopalliance.intercept.MethodInvocation methodInvocation)
      MethodInvocation が指定する DenyAllPermitAllRolesAllowed アノテーションを評価することにより、Authentication がメソッドにアクセスできるかどうかを判別します。
      次で指定:
      インターフェース AuthorizationManager<org.aopalliance.intercept.MethodInvocation>check 
      パラメーター:
      authentication - チェックする AuthenticationSupplierSE
      methodInvocation - チェックする MethodInvocation 
      戻り値:
      AuthorizationDecision、または JSR-250 セキュリティアノテーションが存在しない場合は null