Annotation Interface Security


@Target({TYPE,METHOD}) @Retention(RUNTIME) public @interface Security
Set the roles that would allow access to a service interface or service method.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Use predefined role: see constants unrestricted, default and admin.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The admin role that is required by all jadex system services, e.g.
    static final String
    The default role that is assigned to services without security annotation and granted in all authenticated networks.
    static final String
    The unrestricted role (access is granted to all), e.g.
  • Field Details

    • UNRESTRICTED

      static final String UNRESTRICTED
      The unrestricted role (access is granted to all), e.g. used for chat.
      See Also:
    • TRUSTED

      static final String TRUSTED
      The default role that is assigned to services without security annotation and granted in all authenticated networks.
      See Also:
    • ADMIN

      static final String ADMIN
      The admin role that is required by all jadex system services, e.g. CMS.
      See Also:
  • Element Details

    • roles

      String[] roles
      Use predefined role: see constants unrestricted, default and admin. Custom role(s): Allow only authentication secrets (e.g. network or platform key) that are locally given at least one of the requested roles.
      Default:
      {"trusted"}