@ConfigRoot(name="security",
phase=BUILD_AND_RUN_TIME_FIXED)
public class SecurityBuildTimeConfig
extends Object
| Modifier and Type | Field and Description |
|---|---|
boolean |
denyUnannotated
If set to true, access to all methods of beans that have any security annotations on other members will be denied by
default.
|
| Constructor and Description |
|---|
SecurityBuildTimeConfig() |
@ConfigItem(name="deny-unannotated-members") public boolean denyUnannotated
methodB will be denied.
@ApplicationScoped
public class A {
@RolesAllowed("admin")
public void methodA() {
...
}
public void methodB() {
...
}
}
Copyright © 2021 JBoss by Red Hat. All rights reserved.