Annotation Interface HasPermission


@Target({METHOD,TYPE}) @Retention(RUNTIME) public @interface HasPermission
Annotations that applications can use to indicate that a certain method or all methods of a class require permission checking.
Author:
avasquez
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The action the current subject is trying to execute.
    The permission type, which indicates the PermissionEvaluator to use for permission evaluation.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Indicates if the presence of a valid management token should grant access to the protected resource/action
  • Element Details

    • type

      Class<?> type
      The permission type, which indicates the PermissionEvaluator to use for permission evaluation.
    • action

      String action
      The action the current subject is trying to execute.
    • acceptManagementToken

      boolean acceptManagementToken
      Indicates if the presence of a valid management token should grant access to the protected resource/action
      Default:
      false