Annotation Interface RunAs


@Around @Target({METHOD,TYPE}) @Retention(RUNTIME) @Inherited @Documented public @interface RunAs
Applies a run-as authentication to intercepted method invocations.
Since:
5.1.0
Author:
Sergio del Amo
  • Element Details

    • value

      @AliasFor(member="roles") String[] value
      Alias for roles().
      Returns:
      The roles for the run-as authentication
      Since:
      5.1.0
      Default:
      {}
    • name

      String name
      Returns:
      The user name for the run-as authentication, or the current user name when blank
      Default:
      ""
    • roles

      @AliasFor(member="value") String[] roles
      Returns:
      The roles for the run-as authentication
      Default:
      {}
    • appendRoles

      boolean appendRoles
      Returns:
      Whether the supplied roles should be appended to the current authentication roles.
      Since:
      5.1.0
      Default:
      true
    • attributes

      RunAs.Attribute[] attributes
      Returns:
      The attributes for the run-as authentication
      Default:
      {}
    • appendAttributes

      boolean appendAttributes
      Returns:
      Whether the supplied attributes should be appended to the current authentication attributes.
      Since:
      5.1.0
      Default:
      true