Annotation Type Security


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

      Fields 
      Modifier and Type Fields Description
      static java.lang.String ADMIN
      The admin role that is required by all jadex system services, e.g.
      static java.lang.String TRUSTED
      The default role that is assigned to services without security annotation and granted in all authenticated networks.
      static java.lang.String UNRESTRICTED
      The unrestricted role (access is granted to all), e.g. used for chat.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String[] roles
      Use predefined role: see constants unrestricted, default and admin.
    • Field Detail

      • UNRESTRICTED

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

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

        static final java.lang.String ADMIN
        The admin role that is required by all jadex system services, e.g. CMS.
    • Element Detail

      • roles

        java.lang.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"}