Package xal.extension.application.rbac
Class RBACPlugin
java.lang.Object
xal.extension.application.rbac.RBACPlugin
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 Summary
Modifier and TypeMethodDescriptionstatic void
static void
protected static Preferences
static RBACLogin
Gets us an instance ofEssRbacLogin
and starts the SSO server.static boolean
If the system has configured RBAC to be active, then return true, otherwise return false.
-
Method Details
-
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
Gets us an instance ofEssRbacLogin
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
-