Class RBACPlugin

java.lang.Object
xal.extension.application.rbac.RBACPlugin

public class RBACPlugin extends Object
This is a plugin for rbac authentication and authorization. It provides a method for retrieving its RbacLogin, thus making it a runtime dependency. It also includes the RBAC Single Sign On (SSO) server to enable the users to use a single login for all OpenXal apps. Version 0.2 by Yngve Levinsen. Allows using dummy login based on system preferences.
Version:
0.2 12 Jan 2017
Author:
Blaz Kranjc <blaz.kranjc@cosylab.com>
  • Method Details

    • getDefaults

      protected static Preferences getDefaults()
    • useRBACLogin

      public static boolean useRBACLogin()
      If the system has configured RBAC to be active, then return true, otherwise return false. Returning false should imply that we will use dummy RBAC. If nothing has been configured in system, RBAC is used by default.
      Returns:
      use proper RBAC or not
    • enableRBACLogin

      public static void enableRBACLogin()
    • disableRBACLogin

      public static void disableRBACLogin()
    • getRBACLoginInstance

      public static RBACLogin getRBACLoginInstance()
      Gets us an instance of EssRbacLogin and starts the SSO server. The login is still provided even if the SSO server cannot be started. A dummy RBAC is returned in case RBAC is disabled on the system.
      Returns:
      instance of EssRbacLogin