public class VokSecurity
The security provider. Don't forget to call VokSecurity.install from your UI!
VokSecurity.install| Modifier and Type | Field and Description |
|---|---|
static VokSecurity |
INSTANCE
The security provider. Don't forget to call
VokSecurity.install from your UI! |
| Modifier and Type | Method and Description |
|---|---|
void |
install()
Call this from your
UI.init() function after the Navigator has been set. Hooks will be installed into the Navigator
which will check for AllowRoles annotations on views. |
public static VokSecurity INSTANCE
The security provider. Don't forget to call VokSecurity.install from your UI!
VokSecurity.installpublic void install()
Call this from your UI.init() function after the Navigator has been set. Hooks will be installed into the Navigator
which will check for AllowRoles annotations on views.
Do not forget to install an error handler (by the means of UI.setErrorHandler) and handle the AccessRejectedException there appropriately. Usually showing an error notification, or an "access denied" view is the best approach.