@ApplicationScoped public class SecurityIntegration extends Object
Mutation operations must be checked explicitly in the REST classes using the Security bean and invoking
one of its can*() methods. The creation of the security resources associated with the newly created inventory
entities is handled automagically by this class which does that by observing the mutation events on the inventory
.
To completely disable the auth completely do following:
AllPermissive annotation in RestBase class
(it's commented there).DUMMY flag to true in SecurityIntegration class.hawkular-inventory-dist.war in
dist/src/main/resources/wildfly/patches/standalone.xsl in hawkular/hawkular
repo.jboss-web.xml and web.xml
(it's commented there).
NOTE1: it can be disabled also only partially, for instance if the
AllPermissive annotation is used only above the
RestBase.tenantIdProducer field the auth will be working but the tenant will
be always the same.
NOTE2: This may be useful to measure the impact of security aspects to the overall performance.
| Constructor and Description |
|---|
SecurityIntegration() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isDummy() |
void |
react(AbstractElement<?,?> entity,
Action<?,?> action) |
void |
start(InventoryInitialized event) |
void |
stop(DisposingInventory event) |
public void start(@Observes
InventoryInitialized event)
public void stop(@Observes
DisposingInventory event)
public void react(AbstractElement<?,?> entity, Action<?,?> action)
public static boolean isDummy()
Copyright © 2015 Red Hat, Inc.. All rights reserved.